1 Return-Path: <guyzmo@vilya.m0g.net>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id 71C56431FAF
\r
6 for <notmuch@notmuchmail.org>; Wed, 13 Mar 2013 15:10:03 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id ZD7H1-cWjTLz for <notmuch@notmuchmail.org>;
\r
16 Wed, 13 Mar 2013 15:10:01 -0700 (PDT)
\r
17 Received: from mail.m0g.net (vilya.m0g.net [88.191.157.47])
\r
18 by olra.theworths.org (Postfix) with ESMTP id 9F84E431FAE
\r
19 for <notmuch@notmuchmail.org>; Wed, 13 Mar 2013 15:10:01 -0700 (PDT)
\r
20 Received: from localhost (localhost [127.0.0.1])
\r
21 by mail.m0g.net (Postfix) with ESMTP id B23C93E0E35;
\r
22 Wed, 13 Mar 2013 23:09:45 +0100 (CET)
\r
23 X-Virus-Scanned: Debian amavisd-new at vilya.m0g.net
\r
24 Received: from mail.m0g.net ([127.0.0.1])
\r
25 by localhost (sd-38500.dedibox.fr [127.0.0.1]) (amavisd-new, port 10024)
\r
26 with ESMTP id aTGCvjsdW0TA; Wed, 13 Mar 2013 23:09:44 +0100 (CET)
\r
27 Received: by mail.m0g.net (Postfix, from userid 1000)
\r
28 id B95743E2497; Wed, 13 Mar 2013 23:09:44 +0100 (CET)
\r
29 Date: Wed, 13 Mar 2013 23:09:44 +0100
\r
30 From: guyzmo+notmuch@m0g.net
\r
31 To: Istvan Marko <notmuch@kismala.com>
\r
32 Subject: Re: Procmail regex group reuse
\r
33 Message-ID: <20130313220943.GH14028@vilya.m0g.net>
\r
34 References: <20130313151630.GE14028@vilya.m0g.net>
\r
35 <m31ubjrtyq.fsf@zsu.kismala.com>
\r
37 Content-Type: text/plain; charset=utf-8
\r
38 Content-Disposition: inline
\r
39 Content-Transfer-Encoding: 8bit
\r
40 In-Reply-To: <m31ubjrtyq.fsf@zsu.kismala.com>
\r
41 User-Agent: Mutt/1.5.21 (2011-07-01)
\r
42 Cc: Notmuch <notmuch@notmuchmail.org>
\r
43 X-BeenThere: notmuch@notmuchmail.org
\r
44 X-Mailman-Version: 2.1.13
\r
46 List-Id: "Use and development of the notmuch mail system."
\r
47 <notmuch.notmuchmail.org>
\r
48 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
49 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
50 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
51 List-Post: <mailto:notmuch@notmuchmail.org>
\r
52 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
53 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
54 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
55 X-List-Received-Date: Wed, 13 Mar 2013 22:10:03 -0000
\r
59 On Wed, Mar 13, 2013 at 12:16:29PM -0700, Istvan Marko wrote:
\r
60 > Guyzmo <guyzmo+notmuch@m0g.net> writes:
\r
61 > > Would it be possible to reuse a part of the match regexp in procmail
\r
62 > > so it can be reused in the action part of the rule.
\r
64 > So you get everything between \/ to the end of the whole regexp. In your
\r
65 > case this will get hairy because you need to match stuff after the part
\r
66 > you want to extract. The ?? construct might help to further trim it
\r
67 > down, maybe something like:
\r
69 > * ^TO\/foo\+[a-z]+@mydomain\.tld
\r
70 > * MATCH ?? ^foo\+\/[a-z]+
\r
75 interesting, I'll try hacking around that…
\r
77 > Or if you are willing to switch to maildrop it has pcre and proper
\r
80 or I may switch to maildrop, I used it at one point with courier for my
\r
81 imag installation, but always stuck to procmail before switching to sup,
\r
82 and naturally got back to procmail when I installed notmuch.
\r
84 > Are you tagging with notmuch-deliver?
\r
86 Yes, I am, is there best ways to filter incoming mails, as I'm using
\r
87 notmuch on the same host as my MTA?
\r