Handling of symlinked maildirs?
authorAndrei POPESCU <andreimpopescu@gmail.com>
Mon, 2 Apr 2012 11:28:28 +0000 (14:28 +0300)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:45:59 +0000 (09:45 -0800)
86/b981eb212a8bdff5fc186386db3c37af06048a [new file with mode: 0644]

diff --git a/86/b981eb212a8bdff5fc186386db3c37af06048a b/86/b981eb212a8bdff5fc186386db3c37af06048a
new file mode 100644 (file)
index 0000000..31ee021
--- /dev/null
@@ -0,0 +1,130 @@
+Return-Path: <andreimpopescu@gmail.com>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id D04CB431FC2\r
+       for <notmuch@notmuchmail.org>; Mon,  2 Apr 2012 04:28:36 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.799\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5\r
+       tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+       FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id 9OyMJ6tSmuyX for <notmuch@notmuchmail.org>;\r
+       Mon,  2 Apr 2012 04:28:36 -0700 (PDT)\r
+Received: from mail-wg0-f45.google.com (mail-wg0-f45.google.com\r
+ [74.125.82.45])       (using TLSv1 with cipher RC4-SHA (128/128 bits))        (No client\r
+ certificate requested)        by olra.theworths.org (Postfix) with ESMTPS id\r
+ 107BB431FC0   for <notmuch@notmuchmail.org>; Mon,  2 Apr 2012 04:28:35 -0700\r
+ (PDT)\r
+Received: by wgbds10 with SMTP id ds10so2102612wgb.2\r
+       for <notmuch@notmuchmail.org>; Mon, 02 Apr 2012 04:28:33 -0700 (PDT)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
+       h=date:from:to:subject:message-id:mime-version:content-type\r
+       :content-disposition:user-agent;\r
+       bh=BHOjsGQLhOzXYCiwsI61uDFZRbTSd1ZL2GkDc1KPHFY=;\r
+       b=J4cl8YH8YiJQuE1/xf3u13Fph5tUFz1szBLF4xsM3gu42Hi/w2eFYx8hffJO8x0rXl\r
+       v4TPVsYLD/69pjuuBypPABlko58zN+tjWHOeZkKMboSYmhozNXffhGE4kp+j5wL/ShJf\r
+       lu+4wS/eyIMpXQ+eCiMnChTNKEWjRFQnIzvSAynJEdLKviOQXNyE5UxVb/MPObBi87Vh\r
+       sDo3K9igSipSO39diVGAb7k6N2YwBhM75OU29VTIvHrsqsTu4DC9GTlpKT+n1Fqc9LEi\r
+       EilV9PftzQLzwQKmFuN26svrxV1B7eQnhW3/q61KNUt7Mb3cMvPuJeiO5wDfzI0/z1re\r
+       IJkg==\r
+Received: by 10.180.103.35 with SMTP id ft3mr24082019wib.0.1333366113375;\r
+       Mon, 02 Apr 2012 04:28:33 -0700 (PDT)\r
+Received: from sid.nuvreauspam ([92.86.142.199])\r
+       by mx.google.com with ESMTPS id ex2sm54076255wib.8.2012.04.02.04.28.30\r
+       (version=TLSv1/SSLv3 cipher=OTHER);\r
+       Mon, 02 Apr 2012 04:28:31 -0700 (PDT)\r
+Received: by sid.nuvreauspam (Postfix, from userid 1077)\r
+       id C3417C0353; Mon,  2 Apr 2012 14:28:28 +0300 (EEST)\r
+Date: Mon, 2 Apr 2012 14:28:28 +0300\r
+From: Andrei POPESCU <andreimpopescu@gmail.com>\r
+To: notmuch@notmuchmail.org\r
+Subject: Handling of symlinked maildirs?\r
+Message-ID: <20120402112828.GW21443@sid.nuvreauspam>\r
+MIME-Version: 1.0\r
+Content-Type: multipart/signed; micalg=pgp-sha256;\r
+       protocol="application/pgp-signature"; boundary="K5roPakIqCb4O6y8"\r
+Content-Disposition: inline\r
+User-Agent: Mutt/1.5.21 (2010-09-15)\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Mon, 02 Apr 2012 11:28:37 -0000\r
+\r
+\r
+--K5roPakIqCb4O6y8\r
+Content-Type: text/plain; charset=us-ascii\r
+Content-Disposition: inline\r
+Content-Transfer-Encoding: quoted-printable\r
+\r
+Hi,\r
+\r
+Im sorting my mailing lists with generic maildrop rules like this one:\r
+\r
+    if (/^List-Id:.*<debian-(.*)\.lists.debian.org>/)\r
+        to Maildir/.debian.$MATCH1/\r
+\r
+However, I'm subscribed to a *lot* of mailing lists and in order to keep=20\r
+my folder view sane I use symlinks to conflate some of them, e.g.=20\r
+\r
+=2Edebian.devel-announce -> .debian.devel\r
+\r
+This works well since mutt simply ignores the symlink(s) so I don't even=20\r
+need to exclude them in the config, but it seems that notmuch does index=20\r
+each of the symlinks as a separate folder[1].\r
+\r
+Does it make sense to have this configurable or even completely exclude=20\r
+the symlinks?\r
+\r
+On a somewhat related note, unless I'm missing something, notmuch is=20\r
+currently indexing only a few header fields, not including List-Id, and=20\r
+there is no way to add custom fields. Am I correct?\r
+\r
+The reason I'm asking is that in theory one could completely drop any=20\r
+sorting (just drop all mail in one folder) and use something like=20\r
+'list-id: debian-devel' instead.\r
+\r
+Yes, I'm aware that one could work around it by using To:/Cc:, but I'd=20\r
+like to distinguish between messages received via the mailing list or=20\r
+directly to my private address, otherwise I'd be using Gmail for=20\r
+everything anyway :)\r
+\r
+[1] this also causes mutt-notmuch to generate a lot of errors when it=20\r
+tries to symlink the same message twice to the cache maildir.\r
+\r
+Kind regards,\r
+Andrei\r
+--=20\r
+If you can't explain it simply, you don't understand it well enough.\r
+(Albert Einstein)\r
+\r
+--K5roPakIqCb4O6y8\r
+Content-Type: application/pgp-signature; name="signature.asc"\r
+Content-Description: Digital signature\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v1.4.12 (GNU/Linux)\r
+\r
+iQEcBAEBCAAGBQJPeY1cAAoJEHNWs3jeoi3pxpMH/25ZJtDN0f8v1t8toDUjn1HN\r
++qn6ICj2tqOTMQczS/pxpSUl3Bkt6i3RZQLi/cGjLeX5Pf06b/io3y+XImmo8aHQ\r
+Cjag+AFuaiQ481gQEdIX2qQPaQGUH6R5pGhXtzVS3N+qQBCZouR9Rw0iuoh9qKEE\r
+Kh5DLxGsRwLbLxF/5z6GndAyOoObNaOWE4MAbc1TD/5Oftef0LLoUqjAH7fFkbV4\r
+OthodEGvHlhttREluiQihtSmRyYIS3mlWTD8qVYDhluoGq9AZRUXJAYZjux0Kr3Q\r
+0c+P2Bfr0SRB9UjXRnoTy87LSoKj6AYqAs+SCPTq+oCVy9tAULEynr4zaPczYE4=\r
+=VyXw\r
+-----END PGP SIGNATURE-----\r
+\r
+--K5roPakIqCb4O6y8--\r