--- /dev/null
+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 17909431FBF\r
+ for <notmuch@notmuchmail.org>; Sat, 22 Nov 2014 08:26:28 -0800 (PST)\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 ors-nFQt7+Qx for <notmuch@notmuchmail.org>;\r
+ Sat, 22 Nov 2014 08:26:20 -0800 (PST)\r
+Received: from mail-wg0-f53.google.com (mail-wg0-f53.google.com\r
+ [74.125.82.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client\r
+ certificate requested) by olra.theworths.org (Postfix) with ESMTPS id\r
+ 750CB431FBC for <notmuch@notmuchmail.org>; Sat, 22 Nov 2014 08:26:20 -0800\r
+ (PST)\r
+Received: by mail-wg0-f53.google.com with SMTP id l18so8880966wgh.40\r
+ for <notmuch@notmuchmail.org>; Sat, 22 Nov 2014 08:26:19 -0800 (PST)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
+ h=from:date:to:subject:message-id:references:mime-version\r
+ :content-type:content-disposition:in-reply-to:user-agent;\r
+ bh=9kG/RK4V+WrlEpJ0XJZRC8t1IAU74gAFowhQwzLe4HM=;\r
+ b=rtlN2kcrpLrhXxbSPntr4NWz4ZqEcQeIgKW3XxtHF7oKU5ma2NLOTMqivJCIU1BOxH\r
+ HshJ9HhkpeUATKdHjzowNrZ6BlNX2kQup0vNdrOJH12b5E9caX4NVEMJ9hRxbaZvcoXg\r
+ lgQY4i+YhOfjdotZSAfJNlF4i+fBY41RJUkQlSnzLJd5unY/gv/KImpC5OqP26xhFqf1\r
+ Wnv0g+UedEP3FpeWIBJTu3u3wjmG4JqjcZ6s8CVU310JpVQ4bodBOqASogFPna8XLU4k\r
+ RaxnTbKu1p/1WFum5O/G1nInZw/pMATMnx4BFECKpejCYBFN8e5yIGb6xXLhIoquuSkz\r
+ vjMg==\r
+X-Received: by 10.194.110.161 with SMTP id ib1mr19058593wjb.78.1416673579123; \r
+ Sat, 22 Nov 2014 08:26:19 -0800 (PST)\r
+Received: from sid.nuvreauspam ([92.86.142.199])\r
+ by mx.google.com with ESMTPSA id n4sm3814543wiz.17.2014.11.22.08.26.17\r
+ for <notmuch@notmuchmail.org>\r
+ (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r
+ Sat, 22 Nov 2014 08:26:17 -0800 (PST)\r
+From: Andrei POPESCU <andreimpopescu@gmail.com>\r
+X-Google-Original-From: Andrei POPESCU <amp@sid.nuvreauspam>\r
+Date: Sat, 22 Nov 2014 18:26:15 +0200\r
+To: notmuch@notmuchmail.org\r
+Subject: Re: exim pipe transport, notmuch insert and mbox-style messages\r
+Message-ID: <20141122162615.GA1209@sid.nuvreauspam>\r
+References: <20141122092851.GA31815@x230>\r
+ <87tx1r7enm.fsf@maritornes.cs.unb.ca>\r
+MIME-Version: 1.0\r
+Content-Type: multipart/signed; micalg=pgp-sha256;\r
+ protocol="application/pgp-signature"; boundary="+0KmLy8UubQqhxHi"\r
+Content-Disposition: inline\r
+In-Reply-To: <87tx1r7enm.fsf@maritornes.cs.unb.ca>\r
+User-Agent: Mutt/1.5.23 (2014-03-12)\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: Sat, 22 Nov 2014 16:26:28 -0000\r
+\r
+\r
+--+0KmLy8UubQqhxHi\r
+Content-Type: text/plain; charset=us-ascii\r
+Content-Disposition: inline\r
+Content-Transfer-Encoding: quoted-printable\r
+\r
+On Sb, 22 nov 14, 10:44:45, David Bremner wrote:\r
+> Edward Betts <edward@4angle.com> writes:\r
+>=20\r
+>=20\r
+> > I wonder if 'notmuch insert' could be modified to detect and drop the F=\r
+rom_\r
+> > line before writing the message to disk and index it. It could do that\r
+> > silently or with a warning.\r
+>=20\r
+> I don't know about the larger question(s), but I'd suggest just escaping\r
+> it to something like X-Envelope-From: . There may even be some\r
+> semi-standard header to use for this.\r
+\r
+I had the same problem with postfix + maildrop, as local(8)=20\r
+unconditionally adds the 'From ' header when delivering to an external=20\r
+command and upstream did not consider my suggestion to make this=20\r
+configurable. The work-arounds I came up with:\r
+\r
+1. use 'reformail -f0' as suggested in maildrop(1)\r
+\r
+reformail(1):\r
+\r
+ -f0\r
+ Any initial blank lines are removed. If the first non-blank line is a=\r
+=20\r
+ "From_" line, it gets converted to a "Return-Path:" header, and any\r
+ existing "Return-Path:" header gets removed. If the message does not=20\r
+ start with a "From_" line, the message remains unchanged.\r
+\r
+2. adjust the 'maildrop' destination in postfix' master.cf to remove the=20\r
+'F' flag.\r
+\r
+pipe(8):\r
+\r
+ F Prepend a "From sender time_stamp" envelope header to the=20\r
+ message content. This is expected by, for example, UUCP\r
+ software.\r
+\r
+3. Deliver from postfix to a Maildir, bypassing any filtering.\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
+http://nuvreauspam.ro/gpg-transition.txt\r
+\r
+--+0KmLy8UubQqhxHi\r
+Content-Type: application/pgp-signature; name="signature.asc"\r
+Content-Description: Digital signature\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v1\r
+\r
+iQIcBAEBCAAGBQJUcLknAAoJEP/HhUTvIjQcFFQP/2FFUe6QFHxY60MssOhvw0xc\r
+ddpGRKpYMMdS59aEr7FXAB/ztfMczuD3tBpytoPYdk9qrKX1HUs3PqcNL7dU1iNA\r
+M1GjVCHvwZbfABma/R2DFug6HKVSWP2b+iOl04/Ib4+LJGB3I3IMQqPetfO+IQAh\r
+f941MAXwEIm/Io+rNS8kCQzk/WO1rSB00McP+1b4e3PKzwj2h04Dib6Z6AzgZOmY\r
+AQhKdeAFVr4Y0Vf1L3nFtD4QTf3+rUdJ7xJqfwRWF8Eh18fg6kRCcK8AWk3+/Sm6\r
+7WbZoU0IvMRcChQZS9367nwWdB4U9O1eYbEd4LFKqllM30GMqjrbwrvZG+JAXxDZ\r
+SJ0EXZu9p4OJYvBNxaBzbtbJoJtYX/pP8EWgvSchVf8/w3avoVLk4iLAzsnGb8g7\r
+U9780FHzO0T3/1qF1zrD0aPryFlqvt6idxKteTsqIbiDUdNzgVHjYI4Pu5iq3WeZ\r
+jcxHxNVBudtzfIIxRocuThWY60/qcTBg7rQdyyDr3r8kls0kSNfxJoPjd7OE64EE\r
+ujihCcCGsOTOgFh503HiTzrH1Dz2E9lZM6QfaU37ONIbPkUzuOAiEYbNTtBJBDTP\r
+84ipUrjLuZfxzb9nWL1H72vOACHKCXTEd9U8FsyPQ3cYrqZbIzU8p6vNdpHPEVo0\r
+K8fNvNU1T1hC8SGCRgM4\r
+=5Bvd\r
+-----END PGP SIGNATURE-----\r
+\r
+--+0KmLy8UubQqhxHi--\r