From: sokobania.01@gmail.com
To: help-gnu-emacs@gnu.org
Subject: Re: Regexp in nnmail-split-methods (was Re: cleaning up a big regexp)
Date: Tue, 16 Sep 2014 05:33:21 -0700 (PDT) [thread overview]
Message-ID: <cb0823fb-2930-4d55-a244-dd4bb8a601ae@googlegroups.com> (raw)
In-Reply-To: <mailman.8968.1410865533.1147.help-gnu-emacs@gnu.org>
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(
next prev parent reply other threads:[~2014-09-16 12:33 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.8887.1410779723.1147.help-gnu-emacs@gnu.org>
2014-09-15 11:18 ` cleaning up a big regexp Joost Kremers
2014-09-15 11:26 ` Tory S. Anderson
2014-09-15 11:41 ` Michael Albinus
2014-09-15 12:06 ` Tory S. Anderson
2014-09-15 12:18 ` Michael Albinus
2014-09-15 12:36 ` Stefan Monnier
2014-09-15 14:11 ` Michael Albinus
2014-09-15 14:42 ` Thanks! " Tory S. Anderson
2014-09-15 19:00 ` Stefan Monnier
2014-09-16 11:05 ` Regexp in nnmail-split-methods (was Re: cleaning up a big regexp) Tory S. Anderson
[not found] ` <mailman.8968.1410865533.1147.help-gnu-emacs@gnu.org>
2014-09-16 12:33 ` sokobania.01 [this message]
2014-09-17 21:20 ` RESOLVED " Tory S. Anderson
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=cb0823fb-2930-4d55-a244-dd4bb8a601ae@googlegroups.com \
--to=sokobania.01@gmail.com \
--cc=help-gnu-emacs@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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.