Re: [notmuch] automatically assigning tags to new messages?
authorMarten Veldthuis <marten@veldthuis.com>
Fri, 18 Dec 2009 11:54:39 +0000 (12:54 +0100)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:35:53 +0000 (09:35 -0800)
e9/6ee5e0976321c2bdadb003806691cb16172a09 [new file with mode: 0644]

diff --git a/e9/6ee5e0976321c2bdadb003806691cb16172a09 b/e9/6ee5e0976321c2bdadb003806691cb16172a09
new file mode 100644 (file)
index 0000000..0d26f77
--- /dev/null
@@ -0,0 +1,84 @@
+Return-Path: <marten@veldthuis.com>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 14C29431FBF\r
+       for <notmuch@notmuchmail.org>; Fri, 18 Dec 2009 03:54:29 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id q79ewAOAJnOM for <notmuch@notmuchmail.org>;\r
+       Fri, 18 Dec 2009 03:54:28 -0800 (PST)\r
+Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com\r
+       [66.111.4.25])\r
+       by olra.theworths.org (Postfix) with ESMTP id 6EEA8431FAE\r
+       for <notmuch@notmuchmail.org>; Fri, 18 Dec 2009 03:54:28 -0800 (PST)\r
+Received: from compute2.internal (compute2.internal [10.202.2.42])\r
+       by gateway1.messagingengine.com (Postfix) with ESMTP id B0402C6FC8;\r
+       Fri, 18 Dec 2009 06:54:27 -0500 (EST)\r
+Received: from heartbeat2.messagingengine.com ([10.202.2.161])\r
+       by compute2.internal (MEProxy); Fri, 18 Dec 2009 06:54:27 -0500\r
+DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=messagingengine.com;\r
+       h=from:to:subject:in-reply-to:references:date:message-id:mime-version:content-type;     s=smtpout; bh=HHNSXe/IWC4RD7iaThHPjOe4CXs=;\r
+       b=CQiExHmLt8P34MTqL7nN/hXbvS6XfCXfSsWRwW4HEbR8utyo+78jhCEt6prDksv0BVJ8YvkqoKfOyfQTIRg0UaLa+OqXaW7T2tr4u064x//ruurY7wRYCW4JhjnYMtuqoYhVOSi4Q/O8Zo+WleYvNuoMwlRTI+dz2hZhSPGmy/Y=\r
+X-Sasl-enc: 5twjOOISVWsMi3yYY1NvlEnkpbwkgPYJtygH5zlvho/U 1261137266\r
+Received: from veldthuis.com (marten.rgoc.rug.nl [129.125.147.35])\r
+       by mail.messagingengine.com (Postfix) with ESMTPSA id 246655B51;\r
+       Fri, 18 Dec 2009 06:54:26 -0500 (EST)\r
+Received: by veldthuis.com (sSMTP sendmail emulation);\r
+       Fri, 18 Dec 2009 12:54:39 +0100\r
+From: Marten Veldthuis <marten@veldthuis.com>\r
+To: Alex Ghitza <aghitza@gmail.com>, notmuch@notmuchmail.org\r
+In-Reply-To: <54aaxg5xyl.fsf@gmail.com>\r
+References: <54aaxg5xyl.fsf@gmail.com>\r
+Date: Fri, 18 Dec 2009 12:54:39 +0100\r
+Message-ID: <878wd0a45c.fsf@veldthuis.com>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\r
+Subject: Re: [notmuch] automatically assigning tags to new messages?\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.12\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Fri, 18 Dec 2009 11:54:29 -0000\r
+\r
+On Fri, 18 Dec 2009 22:21:54 +1100, Alex Ghitza <aghitza@gmail.com> wrote:\r
+> I heard about notmuch mail a few days ago and I started playing with\r
+> it.  So far, it makes me very happy, but there are some things that I\r
+> need to learn how to do.  I'll start with the most important one:\r
+> tagging incoming messages automatically.\r
+\r
+I've got a script somewhere which I invoke after each mail sync. I'll\r
+give some examples from that for your list below.\r
+\r
+> What is the recommended way of achieving this?  There is a variety of\r
+> things that I would like to automatically do to incoming mail:\r
+> - if it comes from a mailing list (e.g. notmuch), tag it +notmuch and\r
+>   +unread, but not +inbox\r
+\r
+notmuch tag +list +notmuch -inbox      to:notmuch@notmuchmail.org    and not tag:notmuch and tag:inbox\r
+\r
+> - if it's one of the numerous pointless weekly newsletters that I'm\r
+>   getting from my university, tag it +unimelb, but not +unread or\r
+>   +inbox \r
+\r
+notmuch tag +unimelb -unread -inbox   to:foo and not tag:unimelb and tag:unread and tag:inbox\r
+\r
+> - if it is coming from me, tag it +sent, but not +unread or +inbox\r
+\r
+Not quite sure. Currently I'm not doing this, don't know if this is\r
+possible within a single incantation of notmuch-tag. I think you\r
+probably need a first search to get message ids, and then tag only those\r
+message ids (doing it like the others above would tag all messages in\r
+the thread with sent, which is probably not what you want).\r
+\r
+-- \r
+- Marten\r