From: Mark Walters Date: Fri, 2 May 2014 14:07:52 +0000 (+0100) Subject: Re: [PATCH v2 0/5] Add support for specifying tags during "notmuch new" X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8cde349d6ba23919e38bab62452a6e58fd49c5ae;p=notmuch-archives.git Re: [PATCH v2 0/5] Add support for specifying tags during "notmuch new" --- diff --git a/13/4f4507d7ee8679a6d3bb5b9baf0504fb3d95a6 b/13/4f4507d7ee8679a6d3bb5b9baf0504fb3d95a6 new file mode 100644 index 000000000..0032aca89 --- /dev/null +++ b/13/4f4507d7ee8679a6d3bb5b9baf0504fb3d95a6 @@ -0,0 +1,108 @@ +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 7D3DF429E32 + for ; Fri, 2 May 2014 07:08:11 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 0.502 +X-Spam-Level: +X-Spam-Status: No, score=0.502 tagged_above=-999 required=5 + tests=[DKIM_ADSP_CUSTOM_MED=0.001, FREEMAIL_FROM=0.001, + NML_ADSP_CUSTOM_MED=1.2, 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 euDVPeG2dNtG for ; + Fri, 2 May 2014 07:08:03 -0700 (PDT) +Received: from mail2.qmul.ac.uk (mail2.qmul.ac.uk [138.37.6.6]) + (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id 81D57429E28 + for ; Fri, 2 May 2014 07:08:03 -0700 (PDT) +Received: from smtp.qmul.ac.uk ([138.37.6.40]) + by mail2.qmul.ac.uk with esmtp (Exim 4.71) + (envelope-from ) + id 1WgE82-0005xw-Ud; Fri, 02 May 2014 15:07:58 +0100 +Received: from 5751dfa2.skybroadband.com ([87.81.223.162] helo=localhost) + by smtp.qmul.ac.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.71) + (envelope-from ) + id 1WgE82-0003qj-CN; Fri, 02 May 2014 15:07:54 +0100 +From: Mark Walters +To: David Edmondson , notmuch@notmuchmail.org +Subject: Re: [PATCH v2 0/5] Add support for specifying tags during "notmuch + new" +In-Reply-To: +References: <1399018555-1994-1-git-send-email-dme@dme.org> + +User-Agent: Notmuch/0.15.2+615~g78e3a93 (http://notmuchmail.org) Emacs/23.4.1 + (x86_64-pc-linux-gnu) +Date: Fri, 02 May 2014 15:07:52 +0100 +Message-ID: <87sios9suf.fsf@qmul.ac.uk> +MIME-Version: 1.0 +Content-Type: text/plain; charset=us-ascii +X-Sender-Host-Address: 87.81.223.162 +X-QM-Geographic: According to ripencc, + this message was delivered by a machine in Britain (UK) (GB). +X-QM-SPAM-Info: Sender has good ham record. :) +X-QM-Body-MD5: fe5dddc51188ab7d8ef62a3e1a243f56 (of first 20000 bytes) +X-SpamAssassin-Score: -0.1 +X-SpamAssassin-SpamBar: / +X-SpamAssassin-Report: The QM spam filters have analysed this message to + determine if it is + spam. We require at least 5.0 points to mark a message as spam. + This message scored -0.1 points. + Summary of the scoring: + * 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail + provider * (markwalters1009[at]gmail.com) + * -0.1 AWL AWL: From: address is in the auto white-list +X-QM-Scan-Virus: ClamAV says the message is clean +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: Fri, 02 May 2014 14:08:11 -0000 + + +Version 2 passes all tests and LGTM. +1 + +Best wishes + +Mark + +On Fri, 02 May 2014, David Edmondson wrote: +> v1: +> +> This patch set allows a user to specify a list of tags to be +> added/removed to messages discovered during "notmuch new". +> +> Two use-cases are envisaged: +> 1) A chunk of messages was just dumped into the configured +> directory by hand, and the user doesn't want the 'inbox' tag +> applied to them. Run 'notmuch new -inbox'. +> 2) A periodic mail processing script wants to add new messages to +> the database, then process those newly added messages to add +> convenience tags, etc. without worrying about the user or other +> instances of the script manipulating tags at the same time. Use +> this approach: +> KEY=$RANDOM +> notmuch new +$KEY +> notmuch tag +notmuch tag:$KEY and to:notmuch@notmuchmail.org +> notmuch tag +gnus tag:$KEY and to:ding@gnus.org +> ... +> notmuch tag -$KEY tag:$KEY +> +> v2: The first version synced tags to flags rather than the other way +> around. Thanks to Mark for complaining at me. +> _______________________________________________ +> notmuch mailing list +> notmuch@notmuchmail.org +> http://notmuchmail.org/mailman/listinfo/notmuch