Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* Re: gnus-article-decode-hook
       [not found]   ` <874qmjp2y5.fsf@qrnik.zagroda>
@ 2004-08-31 19:38     ` Reiner Steib
  0 siblings, 0 replies; only message in thread
From: Reiner Steib @ 2004-08-31 19:38 UTC (permalink / raw)


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/


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-08-31 19:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <87k6vf5st2.fsf@qrnik.zagroda>
     [not found] ` <yotlacwbbbjd.fsf@jpl.org>
     [not found]   ` <874qmjp2y5.fsf@qrnik.zagroda>
2004-08-31 19:38     ` gnus-article-decode-hook Reiner Steib

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).