From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: sokobania.01@gmail.com Newsgroups: gmane.emacs.help Subject: Re: Regexp in nnmail-split-methods (was Re: cleaning up a big regexp) Date: Tue, 16 Sep 2014 05:33:21 -0700 (PDT) Message-ID: References: <87iokpf6v8.fsf@gmx.de> <87a961ulzf.fsf@gmail.com> <87tx49dldt.fsf@gmx.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1410870933 21211 80.91.229.3 (16 Sep 2014 12:35:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Sep 2014 12:35:33 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Sep 16 14:35:26 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XTryg-0008Oz-Aj for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Sep 2014 14:35:26 +0200 Original-Received: from localhost ([::1]:37719 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XTryf-0007KC-MG for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Sep 2014 08:35:25 -0400 X-Received: by 10.43.64.202 with SMTP id xj10mr11456696icb.0.1410870801463; Tue, 16 Sep 2014 05:33:21 -0700 (PDT) X-Received: by 10.140.21.51 with SMTP id 48mr1961qgk.12.1410870801318; Tue, 16 Sep 2014 05:33:21 -0700 (PDT) Original-Path: usenet.stanford.edu!r10no3217699igi.0!news-out.google.com!q8ni12qal.1!nntp.google.com!m5no1477015qaj.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=213.39.33.67; posting-account=6AmU8QoAAABkSb2sbJisGlnlR_egh2hP Original-NNTP-Posting-Host: 213.39.33.67 User-Agent: G2/1.0 Injection-Date: Tue, 16 Sep 2014 12:33:21 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:207677 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:99950 Archived-At: Le mardi 16 septembre 2014 13:05:16 UTC+2, Tory S. Anderson a =E9crit=A0: > (setq nnmail-split-methods >=20 > ; '(("mail.bulk" my-bulk-from) ;; breaks my split-methods >=20 > ("mail.bulk" "^From:.*\\(?:@\\(?:facebookmail\\.com\\|lin\\(?:guistlist= \\.org\\|kedin\\.com\\)\\|\\(?:maillist\\.codeproject\\|p\\(?:apajohns-spec= ials\\|lus\\.google\\)\\|qomail\\.quikorder\\|sportsauthority\\|twitter\\|y= outube\\)\\.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\\(?:guis= tlist\\.org\\|kedin\\.com\\)\\|\\(?:maillist\\.codeproject\\|p\\(?:apajohns= -specials\\|lus\\.google\\)\\|qomail\\.quikorder\\|sportsauthority\\|twitte= r\\|youtube\\)\\.com\\)\\)") This is some lispish stuff... HTH )jack(