From: Rob Browning Date: Sun, 23 Feb 2014 02:29:28 +0000 (+1800) Subject: [BUG] Putting "tags=;" into .notmuch-config will create empty tags X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=07fb5da7ce852f115e7e96274b100fdb7bd9cd78;p=notmuch-archives.git [BUG] Putting "tags=;" into .notmuch-config will create empty tags --- diff --git a/cd/04d20675c55df2f232175af1ca3813b397d5cc b/cd/04d20675c55df2f232175af1ca3813b397d5cc new file mode 100644 index 000000000..15167f705 --- /dev/null +++ b/cd/04d20675c55df2f232175af1ca3813b397d5cc @@ -0,0 +1,68 @@ +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 1D5D0431FCF + for ; Sat, 22 Feb 2014 18:29:34 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 0 +X-Spam-Level: +X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] + 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 96qcgIgax4zM for ; + Sat, 22 Feb 2014 18:29:29 -0800 (PST) +Received: from defaultvalue.org (defaultvalue.org [70.85.129.156]) + by olra.theworths.org (Postfix) with ESMTP id 0D0F7431FBF + for ; Sat, 22 Feb 2014 18:29:29 -0800 (PST) +Received: from trouble.defaultvalue.org (localhost [127.0.0.1]) + (Authenticated sender: rlb@defaultvalue.org) + by defaultvalue.org (Postfix) with ESMTPSA id D11C190D2B + for ; Sat, 22 Feb 2014 20:29:28 -0600 (CST) +Received: by trouble.defaultvalue.org (Postfix, from userid 1000) + id 797D814E14E; Sat, 22 Feb 2014 20:29:28 -0600 (CST) +From: Rob Browning +To: notmuch@notmuchmail.org +Subject: [BUG] Putting "tags=;" into .notmuch-config will create empty tags +User-Agent: Notmuch/0.17 (http://notmuchmail.org) Emacs/24.3.1 + (x86_64-pc-linux-gnu) +Date: Sat, 22 Feb 2014 20:29:28 -0600 +Message-ID: <87ha7qfto7.fsf@trouble.defaultvalue.org> +MIME-Version: 1.0 +Content-Type: text/plain +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, 23 Feb 2014 02:29:34 -0000 + + +In the [new] section, "tags=;" will cause notmuch to create empty tags +that are fairly hard to remove from the command line. + +After some help on #bup, here's what I came up with to remove them, +though it assumes that the empty tag "+ " will always be first in dump's +output: + + notmuch dump --format=batch-tag 'tag:""' | perl -pe 's/^\+ //' \ + | notmuch restore --format=batch-tag + +And note that you have to use restore, "notmuch tag --batch" doesn't +appear to accept "- " as a tag, even though dump will produce "+ ". + +Hope this helps +-- +Rob Browning +rlb @defaultvalue.org and @debian.org +GPG as of 2011-07-10 E6A9 DA3C C9FD 1FF8 C676 D2C4 C0F0 39E9 ED1B 597A +GPG as of 2002-11-03 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4