Re: Add support for specifying tags during "notmuch new"
authorAustin Clements <amdragon@MIT.EDU>
Sun, 13 Jul 2014 03:40:13 +0000 (23:40 +2000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 18:03:32 +0000 (10:03 -0800)
82/6a70310f8c0299ec522a73cc5164d779fff5ed [new file with mode: 0644]

diff --git a/82/6a70310f8c0299ec522a73cc5164d779fff5ed b/82/6a70310f8c0299ec522a73cc5164d779fff5ed
new file mode 100644 (file)
index 0000000..b85a4ca
--- /dev/null
@@ -0,0 +1,103 @@
+Return-Path: <amdragon@mit.edu>\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 B3FC8431FC3\r
+       for <notmuch@notmuchmail.org>; Sat, 12 Jul 2014 20:40:26 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.7\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\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 ueakMFfv81ft for <notmuch@notmuchmail.org>;\r
+       Sat, 12 Jul 2014 20:40:20 -0700 (PDT)\r
+Received: from dmz-mailsec-scanner-2.mit.edu (dmz-mailsec-scanner-2.mit.edu\r
+       [18.9.25.13])\r
+       (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 682DD431FBD\r
+       for <notmuch@notmuchmail.org>; Sat, 12 Jul 2014 20:40:20 -0700 (PDT)\r
+X-AuditID: 1209190d-f79c06d000002f07-72-53c1ffa3ec98\r
+Received: from mailhub-auth-4.mit.edu ( [18.7.62.39])\r
+       (using TLS with cipher AES256-SHA (256/256 bits))\r
+       (Client did not present a certificate)\r
+       by dmz-mailsec-scanner-2.mit.edu (Symantec Messaging Gateway) with SMTP\r
+       id 21.4E.12039.3AFF1C35; Sat, 12 Jul 2014 23:40:19 -0400 (EDT)\r
+Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11])\r
+       by mailhub-auth-4.mit.edu (8.13.8/8.9.2) with ESMTP id s6D3eIkJ018121; \r
+       Sat, 12 Jul 2014 23:40:19 -0400\r
+Received: from awakening.csail.mit.edu (awakening.csail.mit.edu [18.26.4.91])\r
+       (authenticated bits=0)\r
+       (User authenticated as amdragon@ATHENA.MIT.EDU)\r
+       by outgoing.mit.edu (8.13.8/8.12.4) with ESMTP id s6D3eFo2021009\r
+       (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT);\r
+       Sat, 12 Jul 2014 23:40:16 -0400\r
+Received: from amthrax by awakening.csail.mit.edu with local (Exim 4.80)\r
+       (envelope-from <amdragon@mit.edu>)\r
+       id 1X6Ae6-0005pb-8o; Sat, 12 Jul 2014 23:40:14 -0400\r
+Date: Sat, 12 Jul 2014 23:40:13 -0400\r
+From: Austin Clements <amdragon@MIT.EDU>\r
+To: David Bremner <david@tethera.net>\r
+Subject: Re: Add support for specifying tags during "notmuch new"\r
+Message-ID: <20140713034013.GY4660@mit.edu>\r
+References: <1399018555-1994-1-git-send-email-dme@dme.org>\r
+       <20140502151800.GC8365@mit.edu>\r
+       <87a98ev1h2.fsf@maritornes.cs.unb.ca>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\r
+Content-Disposition: inline\r
+In-Reply-To: <87a98ev1h2.fsf@maritornes.cs.unb.ca>\r
+User-Agent: Mutt/1.5.21 (2010-09-15)\r
+X-Brightmail-Tracker:\r
+ H4sIAAAAAAAAA+NgFupjleLIzCtJLcpLzFFi42IRYrdT1138/2Cwwf9GE4sbrd2MFvvubGGy\r
+       uH5zJrMDs8eu53+ZPJ6tusXsseXQe+YA5igum5TUnMyy1CJ9uwSujCXfnrMXzOCo+Nt1hq2B\r
+       cStbFyMnh4SAiUTjto0sELaYxIV764HiXBxCArOZJA5sWMcE4WxklFj3sxEqc5pJ4k3DJLAW\r
+       IYEljBITZ/uB2CwCqhJ3ezuZQWw2AQ2JbfuXM4LYIkDxq9smg61jFrCSuPhsDzuILSzgKPFs\r
+       VTcriM0roC2xdO1BRogFLYwSq679ZYJICEqcnPmEBaJZS+LGv5dAcQ4gW1pi+T8OkDCngJHE\r
+       +qdPweaICqhITDm5jW0Co9AsJN2zkHTPQuhewMi8ilE2JbdKNzcxM6c4NVm3ODkxLy+1SNdI\r
+       LzezRC81pXQTIyjYOSV5dzC+O6h0iFGAg1GJh/fB+oPBQqyJZcWVuYcYJTmYlER5Nb8AhfiS\r
+       8lMqMxKLM+KLSnNSiw8xSnAwK4nwCkoD5XhTEiurUovyYVLSHCxK4rxvra2ChQTSE0tSs1NT\r
+       C1KLYLIyHBxKErw5/4AaBYtS01Mr0jJzShDSTBycIMN5gIY7gdTwFhck5hZnpkPkTzEqSonz\r
+       tvwFSgiAJDJK8+B6YcnoFaM40CvCvDEg7TzARAbX/QpoMBPQ4O39+0EGlyQipKQaGI9OYFmQ\r
+       YPZmacYNf9noxIY1DoF7VJN2nFDjOSKWnXPrT5QTf1z8n79FyZwZK3jX5j6u4DCeeWtVcnys\r
+       8t5HD6417Tv+jpmNp/HnvMbCc+tNHi65M3vtxtlTrjEt63Y81Knjyv5429XeKVe1z0tpnex1\r
+       dm6bbzXTIe3ru/Uz9ZcvE729cCl7+EwlluKMREMt5qLiRAAhefbgIQMAAA==\r
+Cc: notmuch@notmuchmail.org\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\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: Sun, 13 Jul 2014 03:40:26 -0000\r
+\r
+Quoth David Bremner on Jul 12 at  4:08 pm:\r
+> Austin Clements <amdragon@MIT.EDU> writes:\r
+> \r
+> > What happens when this script dies in the middle (say, your computer\r
+> > loses power or notmuch tag conflicts with something else on the write\r
+> > lock)?  One advantage of the standard "new" tag approach is that it's\r
+> > easy to write a stateless post-new tagging script that can be killed\r
+> > at any point and restarted.  (You're right that post-new has a\r
+> > concurrency issue, but we should fix that in its own right.)\r
+> \r
+> Hi David, Hi Austin;\r
+> \r
+> So, what to do about this patch series? Is it actually a bad idea to\r
+> allow specifying tags for notmuch new? We already allow it via config,\r
+> right, so this just makes things more convenient.\r
+\r
+I'm not sure if it's a bad idea or not, but it's materially different\r
+from the tags in the config.  The tags in the config persist and any\r
+call to notmuch new from any source (cron, 'G' in Emacs, etc.) will\r
+pick them up.  Tags specified on the command line don't persist in\r
+this way.\r