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