database error
[notmuch-archives.git] / d2 / 11e2835bb420625a7ce587bdcfd7aac42edead
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 F28AF431FB6\r
6         for <notmuch@notmuchmail.org>; Wed, 13 Mar 2013 08:16:46 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 0\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
12         autolearn=disabled\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 1BLemM1bqXNg for <notmuch@notmuchmail.org>;\r
16         Wed, 13 Mar 2013 08:16:46 -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 729AC431FAF\r
19         for <notmuch@notmuchmail.org>; Wed, 13 Mar 2013 08:16:46 -0700 (PDT)\r
20 Received: from localhost (localhost [127.0.0.1])\r
21         by mail.m0g.net (Postfix) with ESMTP id 1373B3E015B\r
22         for <notmuch@notmuchmail.org>; Wed, 13 Mar 2013 16:16:32 +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 FFYqnmEJefHR for <notmuch@notmuchmail.org>;\r
27         Wed, 13 Mar 2013 16:16:31 +0100 (CET)\r
28 Received: by mail.m0g.net (Postfix, from userid 1000)\r
29         id 418C63E2285; Wed, 13 Mar 2013 16:16:31 +0100 (CET)\r
30 Date: Wed, 13 Mar 2013 16:16:30 +0100\r
31 From: Guyzmo <guyzmo+notmuch@m0g.net>\r
32 To: Notmuch <notmuch@notmuchmail.org>\r
33 Subject: Procmail regex group reuse\r
34 Message-ID: <20130313151630.GE14028@vilya.m0g.net>\r
35 MIME-Version: 1.0\r
36 Content-Type: text/plain; charset=us-ascii\r
37 Content-Disposition: inline\r
38 User-Agent: Mutt/1.5.21 (2011-07-01)\r
39 X-BeenThere: notmuch@notmuchmail.org\r
40 X-Mailman-Version: 2.1.13\r
41 Precedence: list\r
42 List-Id: "Use and development of the notmuch mail system."\r
43         <notmuch.notmuchmail.org>\r
44 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
45         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
46 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
47 List-Post: <mailto:notmuch@notmuchmail.org>\r
48 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
49 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
50         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
51 X-List-Received-Date: Wed, 13 Mar 2013 15:16:47 -0000\r
52 \r
53 Hello,\r
54 \r
55     I have looked over that usage pattern over the procmail doc and\r
56 mailing lists for some time now, and it seems no one ever asked the\r
57 question:\r
58 \r
59     Would it be possible to reuse a part of the match regexp in procmail\r
60 so it can be reused in the action part of the rule. Something like the\r
61 following:\r
62 \r
63 --------8<----------------8<----------------8<---------------8<--------\r
64 :0:notmuch.lock\r
65 * .*foo\+\(\w+\)@mydomain\.tld.*\r
66\r
67     TAGS="${TAGS} $1"\r
68 }\r
69 -------->8---------------->8---------------->8--------------->8--------\r
70 \r
71     where "$1" would be the group match (like `\1` in sed). I used \r
72 to do it easily when I was using sup, and I really miss it now that I\r
73 have switched to notmuch.\r
74 \r
75     Maybe I shall use another mail matching program like formail, or \r
76 shall I write a patch for it, but I'd like first to ask here if someone \r
77 had the same issue, and found a solution.\r
78 \r
79 -- \r
80 Guyzmo\r