1 Return-Path: <jani@nikula.org>
\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 E96FC431FB6
\r
6 for <notmuch@notmuchmail.org>; Tue, 15 May 2012 00:20:38 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5
\r
12 tests=[RCVD_IN_DNSWL_LOW=-0.7] 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 MkSBacH5NW0W for <notmuch@notmuchmail.org>;
\r
16 Tue, 15 May 2012 00:20:38 -0700 (PDT)
\r
17 Received: from mail-qc0-f181.google.com (mail-qc0-f181.google.com
\r
18 [209.85.216.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))
\r
19 (No client certificate requested)
\r
20 by olra.theworths.org (Postfix) with ESMTPS id 5156F431FAE
\r
21 for <notmuch@notmuchmail.org>; Tue, 15 May 2012 00:20:38 -0700 (PDT)
\r
22 Received: by qcsk26 with SMTP id k26so5169059qcs.26
\r
23 for <notmuch@notmuchmail.org>; Tue, 15 May 2012 00:20:37 -0700 (PDT)
\r
24 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
\r
25 d=google.com; s=20120113;
\r
26 h=from:to:subject:in-reply-to:references:user-agent:date:message-id
\r
27 :mime-version:content-type:x-gm-message-state;
\r
28 bh=CKugWHBDRtWmgToe6j427WR1iws0p6lUxLCV/xmdB9Q=;
\r
29 b=KtXNb7WhxdsSTe6BU9iaLSm2qHfU1CbFqw42eOfQfCl0tXKf8UPgOGP9ORtm8qixuO
\r
30 +lWU5roV0h1vQOn0ERZ/4wKxj4qyRyQdY6tcQjk3xh492FrpqRM2H/nIDwvaoMGG1QD+
\r
31 0WNM0qr4grgCmnEdDErv5dT1z5GwWmMazxTSbAMQ4oCvOLs2Wsd9zcPMoj+HmFFBBKIr
\r
32 mBaeT8wDY14X0NoQ6L3SQAPyU1Wfdmu4naKgmx/bqQWxL4QJqJ3sPoOS/AaxonVlg+VW
\r
33 8/M+mE4jtdQjraB6LZcumwQK91tRhgP8c5WOmpylXPwgVsXgf2pOy8UtpDDT6gBZ6j8j
\r
35 Received: by 10.229.137.137 with SMTP id w9mr5384217qct.107.1337066437463;
\r
36 Tue, 15 May 2012 00:20:37 -0700 (PDT)
\r
37 Received: from localhost (nikula.org. [92.243.24.172])
\r
38 by mx.google.com with ESMTPS id gw8sm1543072qab.7.2012.05.15.00.20.35
\r
39 (version=SSLv3 cipher=OTHER); Tue, 15 May 2012 00:20:36 -0700 (PDT)
\r
40 From: Jani Nikula <jani@nikula.org>
\r
41 To: Robert Horn <rjhorn@alum.mit.edu>, notmuch@notmuchmail.org
\r
42 Subject: Re: Using procmail to set tags
\r
43 In-Reply-To: <m3vcjyl4kg.fsf@quad.robs.office>
\r
44 References: <m3vcjyl4kg.fsf@quad.robs.office>
\r
45 User-Agent: Notmuch/0.11.1+222~ga47a98c (http://notmuchmail.org) Emacs/23.1.1
\r
47 Date: Tue, 15 May 2012 07:20:33 +0000
\r
48 Message-ID: <874nrhap1a.fsf@nikula.org>
\r
50 Content-Type: text/plain; charset=us-ascii
\r
52 ALoCoQkSO64jFlVHCq3Yvf+RmGffqatMZEvC8Wfp05XSuYAJpS7mwt7UEaDdyPF3l5ryhpHSjUw6
\r
53 X-BeenThere: notmuch@notmuchmail.org
\r
54 X-Mailman-Version: 2.1.13
\r
56 List-Id: "Use and development of the notmuch mail system."
\r
57 <notmuch.notmuchmail.org>
\r
58 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
59 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
60 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
61 List-Post: <mailto:notmuch@notmuchmail.org>
\r
62 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
63 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
64 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
65 X-List-Received-Date: Tue, 15 May 2012 07:20:39 -0000
\r
67 On Mon, 14 May 2012 19:34:55 -0400, Robert Horn <rjhorn@alum.mit.edu> wrote:
\r
68 > Is it practical (and has anyone documented) using a procmail setup to
\r
69 > set initial tags for messages using notmuch?
\r
71 Can you express your initial tags in terms of notmuch searches? If you
\r
72 can, I'd use the post-new hook of 'notmuch new' to do the initial
\r
73 tagging. See http://notmuchmail.org/initial_tagging/ and 'man
\r
74 notmuch-hooks' for some tips. OTOH, there's no real need for tags based
\r
75 purely on notmuch searches in the emacs ui, because you can setup
\r
76 notmuch-saved-searches. But YMMV.
\r
78 If you can't express your tags in terms of notmuch searches (perhaps
\r
79 because you want to tag based on List-Id: or some other header notmuch
\r
80 does not index) you may need to look into notmuch-deliver. It's in the
\r
81 contrib directory of the notmuch repository:
\r
82 http://git.notmuchmail.org/git/notmuch/tree/HEAD:/contrib/notmuch-deliver
\r
84 Tagging anything in notmuch requires that the message has been
\r
85 delivered, and 'notmuch new' has been run, which might not be practical
\r
86 within procmail. IIUC notmuch-deliver combines delivery, 'notmuch new',
\r
87 and tagging. Disclaimer: I haven't used it myself.
\r
89 > I've just started using emacs-notmuch to read mail, and I'm using a
\r
90 > system where I have procmail filters to bin mail by category into
\r
91 > folders. I can continue this using folder:value for searching, but one
\r
92 > reason notmuch interests me is the potential to do more.
\r
94 You can, of course, combine folder searches with other searches, and
\r
95 include them in notmuch-saved-searces.
\r
100 > It's practical for me to assign potentially overlapping tags with a more
\r
101 > sophisticated procmail setup. Notmuch tags enable having multiple tags
\r
104 > I don't know enough about the procmail/notmuch process to see just how
\r
105 > to make this happen. I'm hoping that someone has already done something
\r
109 > rjhorn@alum.mit.edu
\r
111 > _______________________________________________
\r
112 > notmuch mailing list
\r
113 > notmuch@notmuchmail.org
\r
114 > http://notmuchmail.org/mailman/listinfo/notmuch
\r