help-gnu-emacs
[Top][All Lists]
Advanced

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

RESOLVED Re: Regexp in nnmail-split-methods (was Re: cleaning up a big r


From: Tory S. Anderson
Subject: RESOLVED Re: Regexp in nnmail-split-methods (was Re: cleaning up a big regexp)
Date: Wed, 17 Sep 2014 17:20:31 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

That did the trick. Thanks!

address@hidden writes:

> Le mardi 16 septembre 2014 13:05:16 UTC+2, Tory S. Anderson a écrit :
>> (setq nnmail-split-methods
>> 
>> ;       '(("mail.bulk" my-bulk-from) ;; breaks my split-methods
>> 
>>       ("mail.bulk" 
>> "^From:.*\\(?:@\\(?:facebookmail\\.com\\|lin\\(?:guistlist\\.org\\|kedin\\.com\\)\\|\\(?:maillist\\.codeproject\\|p\\(?:apajohns-specials\\|lus\\.google\\)\\|qomail\\.quikorder\\|sportsauthority\\|twitter\\|youtube\\)\\.com\\)\\)")
>
> You have to use a backquote (or backtick) and a comma to replace the symbol 
> my-bulk-from by its value in the list you create:
> (setq nnmail-split-methods
>        `(("mail.bulk" ,my-bulk-from) ;; Won't break my split-methods
>          ("mail.bulk" 
> "^From:.*\\(?:@\\(?:facebookmail\\.com\\|lin\\(?:guistlist\\.org\\|kedin\\.com\\)\\|\\(?:maillist\\.codeproject\\|p\\(?:apajohns-specials\\|lus\\.google\\)\\|qomail\\.quikorder\\|sportsauthority\\|twitter\\|youtube\\)\\.com\\)\\)")
>
> This is some lispish stuff...
> HTH
> )jack(



reply via email to

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