Re: [PATCH 9/9] add has: query prefix to search for specific properties
[notmuch-archives.git] / e9 / 6ee5e0976321c2bdadb003806691cb16172a09
1 Return-Path: <marten@veldthuis.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 14C29431FBF\r
6         for <notmuch@notmuchmail.org>; Fri, 18 Dec 2009 03:54:29 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 Received: from olra.theworths.org ([127.0.0.1])\r
9         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
10         with ESMTP id q79ewAOAJnOM for <notmuch@notmuchmail.org>;\r
11         Fri, 18 Dec 2009 03:54:28 -0800 (PST)\r
12 Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com\r
13         [66.111.4.25])\r
14         by olra.theworths.org (Postfix) with ESMTP id 6EEA8431FAE\r
15         for <notmuch@notmuchmail.org>; Fri, 18 Dec 2009 03:54:28 -0800 (PST)\r
16 Received: from compute2.internal (compute2.internal [10.202.2.42])\r
17         by gateway1.messagingengine.com (Postfix) with ESMTP id B0402C6FC8;\r
18         Fri, 18 Dec 2009 06:54:27 -0500 (EST)\r
19 Received: from heartbeat2.messagingengine.com ([10.202.2.161])\r
20         by compute2.internal (MEProxy); Fri, 18 Dec 2009 06:54:27 -0500\r
21 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=messagingengine.com;\r
22         h=from:to:subject:in-reply-to:references:date:message-id:mime-version:content-type;     s=smtpout; bh=HHNSXe/IWC4RD7iaThHPjOe4CXs=;\r
23         b=CQiExHmLt8P34MTqL7nN/hXbvS6XfCXfSsWRwW4HEbR8utyo+78jhCEt6prDksv0BVJ8YvkqoKfOyfQTIRg0UaLa+OqXaW7T2tr4u064x//ruurY7wRYCW4JhjnYMtuqoYhVOSi4Q/O8Zo+WleYvNuoMwlRTI+dz2hZhSPGmy/Y=\r
24 X-Sasl-enc: 5twjOOISVWsMi3yYY1NvlEnkpbwkgPYJtygH5zlvho/U 1261137266\r
25 Received: from veldthuis.com (marten.rgoc.rug.nl [129.125.147.35])\r
26         by mail.messagingengine.com (Postfix) with ESMTPSA id 246655B51;\r
27         Fri, 18 Dec 2009 06:54:26 -0500 (EST)\r
28 Received: by veldthuis.com (sSMTP sendmail emulation);\r
29         Fri, 18 Dec 2009 12:54:39 +0100\r
30 From: Marten Veldthuis <marten@veldthuis.com>\r
31 To: Alex Ghitza <aghitza@gmail.com>, notmuch@notmuchmail.org\r
32 In-Reply-To: <54aaxg5xyl.fsf@gmail.com>\r
33 References: <54aaxg5xyl.fsf@gmail.com>\r
34 Date: Fri, 18 Dec 2009 12:54:39 +0100\r
35 Message-ID: <878wd0a45c.fsf@veldthuis.com>\r
36 MIME-Version: 1.0\r
37 Content-Type: text/plain; charset=us-ascii\r
38 Subject: Re: [notmuch] automatically assigning tags to new messages?\r
39 X-BeenThere: notmuch@notmuchmail.org\r
40 X-Mailman-Version: 2.1.12\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: Fri, 18 Dec 2009 11:54:29 -0000\r
52 \r
53 On Fri, 18 Dec 2009 22:21:54 +1100, Alex Ghitza <aghitza@gmail.com> wrote:\r
54 > I heard about notmuch mail a few days ago and I started playing with\r
55 > it.  So far, it makes me very happy, but there are some things that I\r
56 > need to learn how to do.  I'll start with the most important one:\r
57 > tagging incoming messages automatically.\r
58 \r
59 I've got a script somewhere which I invoke after each mail sync. I'll\r
60 give some examples from that for your list below.\r
61 \r
62 > What is the recommended way of achieving this?  There is a variety of\r
63 > things that I would like to automatically do to incoming mail:\r
64 > - if it comes from a mailing list (e.g. notmuch), tag it +notmuch and\r
65 >   +unread, but not +inbox\r
66 \r
67 notmuch tag +list +notmuch -inbox      to:notmuch@notmuchmail.org    and not tag:notmuch and tag:inbox\r
68 \r
69 > - if it's one of the numerous pointless weekly newsletters that I'm\r
70 >   getting from my university, tag it +unimelb, but not +unread or\r
71 >   +inbox \r
72 \r
73 notmuch tag +unimelb -unread -inbox   to:foo and not tag:unimelb and tag:unread and tag:inbox\r
74 \r
75 > - if it is coming from me, tag it +sent, but not +unread or +inbox\r
76 \r
77 Not quite sure. Currently I'm not doing this, don't know if this is\r
78 possible within a single incantation of notmuch-tag. I think you\r
79 probably need a first search to get message ids, and then tag only those\r
80 message ids (doing it like the others above would tag all messages in\r
81 the thread with sent, which is probably not what you want).\r
82 \r
83 -- \r
84 - Marten\r