[PATCH 6/9] CLI: refactor dumping of tags.
[notmuch-archives.git] / b5 / 898e8e669f78194a67cc86f44bd9698a68f909
1 Return-Path: <bgamari@gmail.com>\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 4C247431FB6\r
6         for <notmuch@notmuchmail.org>; Wed, 24 Nov 2010 21:30:50 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.099\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.099 tagged_above=-999 required=5\r
12         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
13         FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=disabled\r
14 Received: from olra.theworths.org ([127.0.0.1])\r
15         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
16         with ESMTP id Y8Lld5zvhjUC for <notmuch@notmuchmail.org>;\r
17         Wed, 24 Nov 2010 21:30:49 -0800 (PST)\r
18 Received: from mail-qw0-f45.google.com (mail-qw0-f45.google.com\r
19         [209.85.216.45])\r
20         by olra.theworths.org (Postfix) with ESMTP id 856F1431FB5\r
21         for <notmuch@notmuchmail.org>; Wed, 24 Nov 2010 21:30:49 -0800 (PST)\r
22 Received: by qwh5 with SMTP id 5so474801qwh.18\r
23         for <notmuch@notmuchmail.org>; Wed, 24 Nov 2010 21:30:47 -0800 (PST)\r
24 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
25         h=domainkey-signature:received:received:from:to:subject:in-reply-to\r
26         :references:user-agent:date:message-id:mime-version:content-type;\r
27         bh=JQKIyQTEwFFp2SRy8CQNtAb9Ic+QB9MbYyH9/nZv2x8=;\r
28         b=LtF6d16yh8cv34WtbRIuGb6VRtoaNVHC20gBTqEumasGW2tAK2u/4WWwDzxnp4bVac\r
29         Gk9KKdtL+4kve3IfvDQqm5JTb1ywoGhRQcNqdIZEsg2UPYBPjwwgZTitx0sFc+h17BOY\r
30         uXCARLgFfXUI/3NujPzQ8ubAXlf9jqRTZ+12s=\r
31 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;\r
32         h=from:to:subject:in-reply-to:references:user-agent:date:message-id\r
33         :mime-version:content-type;\r
34         b=M9WIfeUTC4zxBsQrBQSG8onUtlmOnrZJqayXKz2BRKQuUb9RSECEbkL+Karuq/Na8U\r
35         fDaxiZ3oAXpQGye+XrDvNrxvWcK2/u4zfMe6cN5mB5wJYtd9gBgfijhz8c9zKaMzTz20\r
36         8JhgkOIVGSZERthPZkgg3RZdqfolg1qgg1uC0=\r
37 Received: by 10.229.241.194 with SMTP id lf2mr276981qcb.164.1290663047151;\r
38         Wed, 24 Nov 2010 21:30:47 -0800 (PST)\r
39 Received: from localhost (c-24-61-223-13.hsd1.nh.comcast.net [24.61.223.13])\r
40         by mx.google.com with ESMTPS id m7sm244598qck.1.2010.11.24.21.30.46\r
41         (version=TLSv1/SSLv3 cipher=RC4-MD5);\r
42         Wed, 24 Nov 2010 21:30:46 -0800 (PST)\r
43 From: Ben Gamari <bgamari@gmail.com>\r
44 To: Xavier Maillard <xma@gnu.org>, notmuch@notmuchmail.org\r
45 Subject: Re: [FEATURE REQUEST]: post-processing on notmuch new\r
46 In-Reply-To: <m28w0i2w7y.fsf@kcals.maillard.im>\r
47 References: <m28w0i2w7y.fsf@kcals.maillard.im>\r
48 User-Agent: Notmuch/0.5-3-g22aadfc (http://notmuchmail.org) Emacs/23.1.1\r
49         (x86_64-pc-linux-gnu)\r
50 Date: Thu, 25 Nov 2010 00:30:45 -0500\r
51 Message-ID: <8739qqufzu.fsf@gmail.com>\r
52 MIME-Version: 1.0\r
53 Content-Type: text/plain; charset=us-ascii\r
54 X-BeenThere: notmuch@notmuchmail.org\r
55 X-Mailman-Version: 2.1.13\r
56 Precedence: list\r
57 List-Id: "Use and development of the notmuch mail system."\r
58         <notmuch.notmuchmail.org>\r
59 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
60         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
61 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
62 List-Post: <mailto:notmuch@notmuchmail.org>\r
63 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
64 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
65         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
66 X-List-Received-Date: Thu, 25 Nov 2010 05:30:50 -0000\r
67 \r
68 On Wed, 24 Nov 2010 23:27:45 +0100, Xavier Maillard <xma@gnu.org> wrote:\r
69 > Hi,\r
70\r
71 > Am I alone thinking it could be cool to specify a post-processing script\r
72 > to run after 'notmuch new' ?\r
73\r
74 > Currently, one can tell notmuch to add a unique tag but I guess we could\r
75 > extend this to something much smarter. I guess I am not alone using a\r
76 > tagging script after each refresh.\r
77 >\r
78 You are certainly not alone, but I don't see why this needs to be\r
79 implemented in notmuch itself. I, for one, simply have a get-mail script\r
80 which calls offlineimap, notmuch new, and finally my sorting\r
81 script. This seems like a more straightforward way to manage this;\r
82 afterall, there are times (although rare) that I wish to run notmuch new\r
83 without running my sorting script (e.g. while debugging said\r
84 script). Personally, I'd say this is something best left to the user.\r
85 \r
86 Cheers,\r
87 \r
88 - Ben\r