[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Regexp in nnmail-split-methods (was Re: cleaning up a big regexp)
From: |
sokobania . 01 |
Subject: |
Re: Regexp in nnmail-split-methods (was Re: cleaning up a big regexp) |
Date: |
Tue, 16 Sep 2014 05:33:21 -0700 (PDT) |
User-agent: |
G2/1.0 |
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(
- Re: cleaning up a big regexp, (continued)
- Re: cleaning up a big regexp, Joost Kremers, 2014/09/15
- Re: cleaning up a big regexp, Tory S. Anderson, 2014/09/15
- Re: cleaning up a big regexp, Michael Albinus, 2014/09/15
- Re: cleaning up a big regexp, Tory S. Anderson, 2014/09/15
- Re: cleaning up a big regexp, Michael Albinus, 2014/09/15
- Re: cleaning up a big regexp, Stefan Monnier, 2014/09/15
- Re: cleaning up a big regexp, Michael Albinus, 2014/09/15
- Thanks! Re: cleaning up a big regexp, Tory S. Anderson, 2014/09/15
- Re: cleaning up a big regexp, Stefan Monnier, 2014/09/15
- Regexp in nnmail-split-methods (was Re: cleaning up a big regexp), Tory S. Anderson, 2014/09/16
- Message not available
- Re: Regexp in nnmail-split-methods (was Re: cleaning up a big regexp),
sokobania . 01 <=
- RESOLVED Re: Regexp in nnmail-split-methods (was Re: cleaning up a big regexp), Tory S. Anderson, 2014/09/17