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

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

Re: User agent highlighting in gnus


From: Hadron
Subject: Re: User agent highlighting in gnus
Date: Sun, 19 Aug 2007 18:38:54 +0200
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.0 (gnu/linux)

Reiner Steib <reinersteib+gmane@imap.cc> writes:

> On Sat, Aug 18 2007, Xavier Maillard wrote:
>
>> highlights user-agent header according to three distinct lists of
>> good, bad and unknown user-agents.
>
> Using `gnus-header-face-alist' seems much more simple.  Something like
> the following...
>
> (add-to-list
>  'gnus-header-face-alist
>  (list (concat
>       "^"
>       (regexp-opt '("User-Agent" "X-Mailer" "Newsreader" "X-Newsreader") t)
>       ":.*"
>       (regexp-opt '("Gnus" "Mutt") t))
>        nil font-lock-keyword-face))
>
> Bye, Reiner.
>
> Crosspost & Followup-To: gnu.emacs.gnus

Could you explain this block. Not being a lisp programmer I can't really
see how to set a nice "loud" face for all User-Agent or X-Newsreader with
"Mutt" in and another font for either with "Gnus"  in and another for
either with any other face again.

-- 
Perl combines all of the worst aspects of BASIC, C and line noise.
                -- Keith Packard


reply via email to

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