info-gnus-english
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gnus-article-decode-hook


From: Reiner Steib
Subject: Re: gnus-article-decode-hook
Date: Tue, 31 Aug 2004 21:38:15 +0200
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (gnu/linux)

On Tue, Aug 31 2004, Marcin 'Qrczak' Kowalczyk wrote:

> (defun outlook-deuglify-when-needed ()
>   (let ((newsreader (message-field-value "X-Newsreader")))
>     (if (and newsreader
>              (string-match "^Microsoft Outlook Express" newsreader))
>         (gnus-article-outlook-deuglify-article))))
> (eval-after-load "gnus-art"
>   '(add-hook 'gnus-article-decode-hook 'outlook-deuglify-when-needed))
>
> and it works except that the body of each Outlook article is colored
> using the signature face. 

Hm, sometimes I saw this behavior too when doing `W Y f' manually.  I
couldn't figure out what is causing this, though.

> It doesn't happen if I invoke gnus-article-outlook-deuglify-article
> manually, actually it recolors it correctly.

Maybe using a different hook instead of `gnus-article-decode-hook'
gives better results.

,----[ M-x apropos-variable RET gnus-article.*hook RET ]
| gnus-article-decode-hook
|   Variable: *Hook run to decode charsets in articles.
| [...]
| gnus-article-prepare-hook
|   Variable: *A hook called after an article has been prepared in the
|   article buffer.
`----

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/


reply via email to

[Prev in Thread] Current Thread [Next in Thread]