From: Hadron <hadronquark@googlemail.com>
To: info-gnus-english@gnu.org
Subject: Re: User agent highlighting in gnus
Date: Sun, 19 Aug 2007 18:38:54 +0200 [thread overview]
Message-ID: <1gvebbzdgh.fsf@homelinux.net> (raw)
In-Reply-To: <v94piv28o7.fsf@marauder.physik.uni-ulm.de>
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
next prev parent reply other threads:[~2007-08-19 16:38 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <fa7ov3$1kjv$1@talisker.lacave.net>
2007-08-19 9:08 ` Reiner Steib
2007-08-19 14:01 ` Xavier Maillard
2007-08-19 16:23 ` Reiner Steib
2007-08-19 16:38 ` Hadron [this message]
2007-08-19 22:02 ` Reiner Steib
2007-08-20 14:43 ` Hadron
2007-08-21 14:38 ` Steffen Schwigon
2007-08-21 14:52 ` Simias
2007-08-22 12:38 ` Steffen Schwigon
2007-08-21 15:39 ` Hadron
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1gvebbzdgh.fsf@homelinux.net \
--to=hadronquark@googlemail.com \
--cc=info-gnus-english@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).