* Re: trying to set nnmail-split-methods neatly
[not found] ` <v9wu48mpil.fsf@marauder.physik.uni-ulm.de>
@ 2004-04-22 16:07 ` Enila Nero
0 siblings, 0 replies; only message in thread
From: Enila Nero @ 2004-04-22 16:07 UTC (permalink / raw)
Reiner Steib <4.uce.03.r.s@nurfuerspam.de> writes:
> On Thu, Apr 22 2004, Rafael Villarroel wrote:
>
>> (setq common-string "stuff")
>>
>> (setq nnmail-split-methods
>> '(("Foo" (concat common-string "more-stuff")
>> "Foo2" (concat common-string "other-stuff")
>> ("Misc" ""))))
>>
>> but everything goes into Misc, even those mails that go into Foo when
>> I write that rule directly as ("Foo" "stuffmore-stuff").
>
> (setq common-string "stuff"
> nnmail-split-methods
> `(("Foo" ,(concat common-string "more-stuff")
> "Foo2" ,(concat common-string "other-stuff")
> ("Misc" ""))))
>
> See (info "(elisp)Backquote") for explanations.
>
> Bye, Reiner.
> --
> ,,,
> (o o)
> ---ooO-(_)-Ooo--- PGP key available via WWW http://rsteib.home.pages.de/
The other problem is that the syntax for nnmail-split-methods is
wrong: first goes the newsgroup name and then the pattern:
(setq nnmail-split-methods
'(("mail.4ad" "From:.*4ad")
("mail.junk" "From:.*Lars\\|Subject:.*buy")
("mail.misc" "")))
(via C-h v nnmail-split-methods)
May use the backquote syntax or something like
(setq nnmail-split-methods
(list
(list (concat common-string "." "spam") "^X-Spam-Flag: YES")
(list (concat common-string "." "newshub") "^From.*newshub")
(list "mail.misc" "")
))
Enila
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-04-22 16:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <w0ahdvdyn6i.fsfhello@somewhere.com>
[not found] ` <v9wu48mpil.fsf@marauder.physik.uni-ulm.de>
2004-04-22 16:07 ` trying to set nnmail-split-methods neatly Enila Nero
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).