1 Return-Path: <mpn@google.com>
\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 A79B2431FAF
\r
6 for <notmuch@notmuchmail.org>; Fri, 14 Sep 2012 10:57:23 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5
\r
12 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7]
\r
14 Received: from olra.theworths.org ([127.0.0.1])
\r
15 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
16 with ESMTP id NDoKzqYVJHKw for <notmuch@notmuchmail.org>;
\r
17 Fri, 14 Sep 2012 10:57:23 -0700 (PDT)
\r
18 Received: from mail-we0-f181.google.com (mail-we0-f181.google.com
\r
19 [74.125.82.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))
\r
20 (No client certificate requested)
\r
21 by olra.theworths.org (Postfix) with ESMTPS id 9AF16431FAE
\r
22 for <notmuch@notmuchmail.org>; Fri, 14 Sep 2012 10:57:22 -0700 (PDT)
\r
23 Received: by weyt57 with SMTP id t57so2849290wey.26
\r
24 for <notmuch@notmuchmail.org>; Fri, 14 Sep 2012 10:57:20 -0700 (PDT)
\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
\r
26 s=20120113; h=sender:from:to:cc:subject:in-reply-to:organization:references
\r
27 :user-agent:x-face:face:x-pgp:x-pgp-fp:date:message-id:mime-version
\r
28 :content-type; bh=iAZvKBBqi/jz5IA+p7qawEmsjpcLWL6PhhGReb504hA=;
\r
29 b=MFgvzxP4gBt5t1D5g6fplXC7htNK2cyVSmn+wrqmZ2i9obXKvNHQ5scJjZuqKn7GBt
\r
30 gjiCMcu649ckfxXmYuHNfGa+6hgO32ZZqN7GqclF3JPzoLqg4cJ2twYdFbVeuwXSbBtQ
\r
31 ae9E8QBc1Yz1I6x7KEI3z9KS5mrUIhDJH/OscSottE6RjwrHUcW5Jw7dNp3fPiRplQaH
\r
32 JnZYnG8xj164OX6lcdPZ85QgYGQePL793cLFnjagbgBcbYUijPLYnxMfjsc0OYxXjaV5
\r
33 HH1nUqq0vADnV/uuryeXnt3J3hQAdo8jn1Uo8Fs3F4d3bmtZeJ0m2sMAggv445TbnWGZ bBeA==
\r
34 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
\r
35 d=google.com; s=20120113;
\r
36 h=sender:from:to:cc:subject:in-reply-to:organization:references
\r
37 :user-agent:x-face:face:x-pgp:x-pgp-fp:date:message-id:mime-version
\r
38 :content-type:x-gm-message-state;
\r
39 bh=iAZvKBBqi/jz5IA+p7qawEmsjpcLWL6PhhGReb504hA=;
\r
40 b=lGUaWEpzTmlZ4O3Z2BOSSSN8Mb8XUZtqiZ5JnzK8DMdNHYmXzh5tvm8GswmFsQR1ti
\r
41 T5g0zizIe2L7OA+DUxUcN+lbziB2SFr3u7aXrbkgq1rv+bsqEBsol6HINAlarJVd8sTl
\r
42 hhhSqBiRex1RJfjyJgB0M5pDO1+5z+oJtLxBIDeCJLeg1vwiXCYmE7VjAGxFyTSgLgWE
\r
43 fHKuudljTU/WCZoXePL9JkVVxwCt1VU1n5eIHZbc6vLlk3znj+jy+qwD/qWE/KtarXeS
\r
44 t4KbAMRxhK7gC13WslqZWzgaYZKreekXIZPQ4s2/GcdML3w/d7WGWP3E+pNkOIaflIMr
\r
46 Received: by 10.180.77.34 with SMTP id p2mr49738680wiw.0.1347645439933;
\r
47 Fri, 14 Sep 2012 10:57:19 -0700 (PDT)
\r
48 Received: by 10.180.77.34 with SMTP id p2mr49738654wiw.0.1347645439761;
\r
49 Fri, 14 Sep 2012 10:57:19 -0700 (PDT)
\r
50 Received: from mpn-glaptop ([2620:0:105f:5:f2de:f1ff:fe35:1a72])
\r
51 by mx.google.com with ESMTPS id j6sm5765236wiy.4.2012.09.14.10.57.18
\r
52 (version=TLSv1/SSLv3 cipher=OTHER);
\r
53 Fri, 14 Sep 2012 10:57:18 -0700 (PDT)
\r
54 Sender: Michal Nazarewicz <mpn@google.com>
\r
55 From: Michal Nazarewicz <mina86@mina86.com>
\r
56 To: Mark Anderson <MarkR.Anderson@amd.com>,
\r
57 Rainer M Krug <R.M.Krug@gmail.com>, notmuch@notmuchmail.org
\r
58 Subject: Re: Better Gmail handling by not using Notmuch tags
\r
59 In-Reply-To: <3wda9ws4ljo.fsf@testarossa.amd.com>
\r
60 Organization: http://mina86.com/
\r
62 <CA+y5gghe68Sy6BK8FdeGbKEESFD_=2GQ+y+oZSYyt85oQqRuzA@mail.gmail.com>
\r
63 <CA+eQo_0nK1rL6DYu2ERqF3U=vZAO_XTpXDtzydHQqBtXqHUOxQ@mail.gmail.com>
\r
64 <CA+y5gghnzinnXiabFOEphAuWTJA5Uge9RtGbKu9ur5rP50i_5g@mail.gmail.com>
\r
65 <5052E1A9.8060503@gmail.com> <3wda9ws4ljo.fsf@testarossa.amd.com>
\r
66 User-Agent: Notmuch/0.14+22~g8bdc16b (http://notmuchmail.org) Emacs/24.2.50.1
\r
67 (x86_64-unknown-linux-gnu)
\r
68 X-Face: PbkBB1w#)bOqd`iCe"Ds{e+!C7`pkC9a|f)Qo^BMQvy\q5x3?vDQJeN(DS?|-^$uMti[3D*#^_Ts"pU$jBQLq~Ud6iNwAw_r_o_4]|JO?]}P_}Nc&"p#D(ZgUb4uCNPe7~a[DbPG0T~!&c.y$Ur,=N4RT>]dNpd; KFrfMCylc}gc??'U2j,!8%xdD
\r
69 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAJFBMVEWbfGlUPDDHgE57V0jUupKjgIObY0PLrom9mH4dFRK4gmjPs41MxjOgAAACQElEQVQ4jW3TMWvbQBQHcBk1xE6WyALX1069oZBMlq+ouUwpEQQ6uRjttkWP4CmBgGM0BQLBdPFZYPsyFUo6uEtKDQ7oy/U96XR2Ux8ehH/89Z6enqxBcS7Lg81jmSuujrfCZcLI/TYYvbGj+jbgFpHJ/bqQAUISj8iLyu4LuFHJTosxsucO4jSDNE0Hq3hwK/ceQ5sx97b8LcUDsILfk+ovHkOIsMbBfg43VuQ5Ln9YAGCkUdKJoXR9EclFBhixy3EGVz1K6eEkhxCAkeMMnqoAhAKwhoUJkDrCqvbecaYINlFKSRS1i12VKH1XpUd4qxL876EkMcDvHj3s5RBajHHMlA5iK32e0C7VgG0RlzFPvoYHZLRmAC0BmNcBruhkE0KsMsbEc62ZwUJDxWUdMsMhVqovoT96i/DnX/ASvz/6hbCabELLk/6FF/8PNpPCGqcZTGFcBhhAaZZDbQPaAB3+KrWWy2XgbYDNIinkdWAFcCpraDE/knwe5DBqGmgzESl1p2E4MWAz0VUPgYYzmfWb9yS4vCvgsxJriNTHoIBz5YteBvg+VGISQWUqhMiByPIPpygeDBE6elD973xWwKkEiHZAHKjhuPsFnBuArrzxtakRcISv+XMIPl4aGBUJm8Emk7qBYU8IlgNEIpiJhk/No24jHwkKTFHDWfPniR4iw5vJaw2nzSjfq2zffcE/GDjRC2dn0J0XwPAbDL84TvaFCJEU4Oml9pRyEUhR3Cl2t01AoEjRbs0sYugp14/4X5n4pU4EHHnMAAAAAElFTkSuQmCC
\r
71 X-PGP-FP: AC1F 5F5C D418 88F8 CC84 5858 2060 4012 5075 1FF4
\r
72 Date: Fri, 14 Sep 2012 19:57:12 +0200
\r
73 Message-ID: <xa1t4nn0sd1j.fsf@mina86.com>
\r
75 Content-Type: multipart/mixed; boundary="=-=-="
\r
76 X-Gm-Message-State: ALoCoQkyGBT3C2jWft/GPecTIAthj2smAIaw45JvVOHRFZAQGFVjOLomPCyLFwp5g5yyjfUgVrEYHtiAGcunv7pQV4eZAnu6ZjqUNSKQf4DY9jJyjgysM//4R/YJ99FSWIPML+MmbpJO7vu5utqQ1MhQjj44shpBFgWYImS0fsmudz2E1mulEeKzUZeI/9+HCaw28sAfHKoi
\r
77 Cc: Jeremy Nickurak <public-not-much-kexSNQTsIoD754YsiR0rpA@plane.gmane.org>
\r
78 X-BeenThere: notmuch@notmuchmail.org
\r
79 X-Mailman-Version: 2.1.13
\r
81 List-Id: "Use and development of the notmuch mail system."
\r
82 <notmuch.notmuchmail.org>
\r
83 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
84 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
85 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
86 List-Post: <mailto:notmuch@notmuchmail.org>
\r
87 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
88 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
89 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
90 X-List-Received-Date: Fri, 14 Sep 2012 17:57:23 -0000
\r
93 Content-Type: text/plain; charset=utf-8
\r
94 Content-Transfer-Encoding: quoted-printable
\r
96 On Fri, Sep 14 2012, Mark Anderson wrote:
\r
97 > You might want to take this chance to make your tag cloud coherent
\r
98 > between Notmuch and what exists in the folders, which works out to
\r
99 > something like this for every tag/folder pair in your gmail IMAP
\r
100 > directory (assuming it's synced to a Maildir repository) and notmuch DB.
\r
102 > notmuch tag +TagX folder:FolderX and not tag:TagX=20
\r
104 I guess adding =E2=80=9Cand tag:new=E2=80=9D won't hurt.
\r
106 > When I see TagX in notmuch, and using FolderX as the proxy for Gmail
\r
107 > tags, then I assume that the user added TagX in notmuch and I need to
\r
108 > synchronize the change. This one is a bit trickier.
\r
110 > notmuch search --output=3Dfiles tag:TagX and not folder:FolderX=20
\r
112 > will give me the list of filenames, but I need to add them to a folder,
\r
113 > so it's time for bash, or your favorite script language. Spaces in
\r
114 > filenames or tags are your bane here, then you'll want to do something
\r
115 > fancier than just the $() interpolation.
\r
117 > notmuch search --output=3Dfiles tag:notmuch and not folder:notmuch |
\r
118 > xargs perl -e'while (defined($_ =3D shift(@ARGV))) {my $file =3D
\r
119 > filename($_); system("cp $_ $MAILDIR/notmuch/cur/$file");}'
\r
121 (You've mised FolderX in the cp command).
\r
125 notmuch search --output=3Dfiles ... |
\r
126 xargs --no-run-if-empty \
\r
127 cp -t "$MAILDIR/notmuch/FolderX/cur/" --
\r
129 expect that --no-run-if-empty is not POSIX and I'm not sure about -t.
\r
131 I'm also wondering if it would make sense to link the files instead of
\r
134 notmuch search --output=3Dfiles ... |
\r
135 xargs --no-run-if-empty \
\r
136 ln -t "$MAILDIR/notmuch/FolderX/cur/" --
\r
140 .o. | Liege of Serenely Enlightened Majesty of o' \,=3D./ `o
\r
141 ..o | Computer Science, Micha=C5=82 =E2=80=9Cmina86=E2=80=9D Nazarewicz =
\r
143 ooo +----<email/xmpp: mpn@google.com>--------------ooO--(_)--Ooo--
\r
145 Content-Type: multipart/signed; boundary="==-=-=";
\r
146 micalg=pgp-sha1; protocol="application/pgp-signature"
\r
149 Content-Type: text/plain
\r
153 Content-Type: application/pgp-signature
\r
155 -----BEGIN PGP SIGNATURE-----
\r
156 Version: GnuPG v1.4.10 (GNU/Linux)
\r
158 iQIcBAEBAgAGBQJQU2/4AAoJECBgQBJQdR/0CGQP+QEqIedUuaXRHcaxuDTIFPDo
\r
159 P1Do+5wBfZnlu4neCxW33j/+s1VwiApQbj64wy9Umh7gEugburWBhm+AeXxK5W/C
\r
160 HCH4S7a8YZPQccaHnPnNQxXPDst8j9MUqSmjXgelTXUHt0ga8m1x2yCAyfkgxR/X
\r
161 3CgwHKVkcyXy59QPlo9TiVsgaEKBgw6lmDeQQXbvl75lW5X1asVz8X125YtJ8Tjq
\r
162 V2qfDTQmDr1G9PEoYlR4qcBySsWgRJaEkGgV+NoUadY2xhnGMvAhF61s2VAVLlmD
\r
163 Q4fgFVlDg1dIJ6crrhB91chReZsLgGsFPj2GF4vXBerzBXENe78nQxUD0aZXnyQx
\r
164 3ZT+gcLaecQYnTOlXXvyr0JLD205+Njqs9HrmiRt39hK+YIticHyaxXczhIODM7k
\r
165 xHQ6rsNVN3sv0IfLjnP8dQrcXo3ljGEYZVim/Ae39wUNLr0fDQT4yTxsTK7bPDw9
\r
166 LSYfCW5vOT35DixthfGIkSOitntzNwsyv40z5yA4EFu1kxK0uzx4dYPxWa2Nfax8
\r
167 yL8wYci3UGsBSzFleRh+fCgaH7b6bRXwgLLbJ9hnCU8xZoOGljl0BJELuPyxR9+g
\r
168 3ikVpS0NnJMjd7ikz8JspZmt1EAwAOCp5dtyX06457JX8sKTY8OX5qrQrkbzca8Q
\r
169 Yl6NSuXvx8MffSL/8m5u
\r
171 -----END PGP SIGNATURE-----
\r