[Top][All Lists]

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

Reduce three rules to one in gnus-posting-styles

From: Cecil Westerhof
Subject: Reduce three rules to one in gnus-posting-styles
Date: Tue, 05 Jan 2010 18:17:55 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux)

In my gnus-posting-styles I had:
         (signature-file "~/.signatureNewsgroup")
         (signature-file "~/.signatureNewsgroup")
         (signature-file "~/.signatureNewsgroup")

For newsgroups (the first rule) and mailing lists (the other two rules)
I want to use a different signature as for my other messages. I am a fan
of DRY so I was wondering if there is a way to condense these three
rules to one. (Makes it also more simple when extra mailing list have to
be added.) And I found one:
        ((or (message-news-p)
             (string-match "INBOX.Info.slime"        gnus-newsgroup-name)
             (string-match "INBOX.Info.spamassassin" gnus-newsgroup-name))
         (signature-file "~/.signatureNewsgroup")

Also a question. In slime and spamassassin I need to use 'm' instead of
'a' because they are mailing lists. Is there a way to automatically fill
in the correct to address and go to the subject field?

Cecil Westerhof
Senior Software Engineer

reply via email to

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