1 Return-Path: <rlb@defaultvalue.org>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id 1D5D0431FCF
\r
6 for <notmuch@notmuchmail.org>; Sat, 22 Feb 2014 18:29:34 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id 96qcgIgax4zM for <notmuch@notmuchmail.org>;
\r
16 Sat, 22 Feb 2014 18:29:29 -0800 (PST)
\r
17 Received: from defaultvalue.org (defaultvalue.org [70.85.129.156])
\r
18 by olra.theworths.org (Postfix) with ESMTP id 0D0F7431FBF
\r
19 for <notmuch@notmuchmail.org>; Sat, 22 Feb 2014 18:29:29 -0800 (PST)
\r
20 Received: from trouble.defaultvalue.org (localhost [127.0.0.1])
\r
21 (Authenticated sender: rlb@defaultvalue.org)
\r
22 by defaultvalue.org (Postfix) with ESMTPSA id D11C190D2B
\r
23 for <notmuch@notmuchmail.org>; Sat, 22 Feb 2014 20:29:28 -0600 (CST)
\r
24 Received: by trouble.defaultvalue.org (Postfix, from userid 1000)
\r
25 id 797D814E14E; Sat, 22 Feb 2014 20:29:28 -0600 (CST)
\r
26 From: Rob Browning <rlb@defaultvalue.org>
\r
27 To: notmuch@notmuchmail.org
\r
28 Subject: [BUG] Putting "tags=;" into .notmuch-config will create empty tags
\r
29 User-Agent: Notmuch/0.17 (http://notmuchmail.org) Emacs/24.3.1
\r
30 (x86_64-pc-linux-gnu)
\r
31 Date: Sat, 22 Feb 2014 20:29:28 -0600
\r
32 Message-ID: <87ha7qfto7.fsf@trouble.defaultvalue.org>
\r
34 Content-Type: text/plain
\r
35 X-BeenThere: notmuch@notmuchmail.org
\r
36 X-Mailman-Version: 2.1.13
\r
38 List-Id: "Use and development of the notmuch mail system."
\r
39 <notmuch.notmuchmail.org>
\r
40 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
41 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
42 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
43 List-Post: <mailto:notmuch@notmuchmail.org>
\r
44 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
45 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
46 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
47 X-List-Received-Date: Sun, 23 Feb 2014 02:29:34 -0000
\r
50 In the [new] section, "tags=;" will cause notmuch to create empty tags
\r
51 that are fairly hard to remove from the command line.
\r
53 After some help on #bup, here's what I came up with to remove them,
\r
54 though it assumes that the empty tag "+ " will always be first in dump's
\r
57 notmuch dump --format=batch-tag 'tag:""' | perl -pe 's/^\+ //' \
\r
58 | notmuch restore --format=batch-tag
\r
60 And note that you have to use restore, "notmuch tag --batch" doesn't
\r
61 appear to accept "- " as a tag, even though dump will produce "+ ".
\r
66 rlb @defaultvalue.org and @debian.org
\r
67 GPG as of 2011-07-10 E6A9 DA3C C9FD 1FF8 C676 D2C4 C0F0 39E9 ED1B 597A
\r
68 GPG as of 2002-11-03 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4
\r