Re: Tabulation in multiline headers
authorJameson Graef Rollins <jrollins@finestructure.net>
Sat, 18 Oct 2014 00:08:08 +0000 (17:08 +1700)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 18:05:20 +0000 (10:05 -0800)
09/46c95f14fe1005e529951d65105a899c89a3bd [new file with mode: 0644]

diff --git a/09/46c95f14fe1005e529951d65105a899c89a3bd b/09/46c95f14fe1005e529951d65105a899c89a3bd
new file mode 100644 (file)
index 0000000..9ac0b47
--- /dev/null
@@ -0,0 +1,124 @@
+Return-Path: <jrollins@finestructure.net>\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 12A4C431FBC\r
+       for <notmuch@notmuchmail.org>; Fri, 17 Oct 2014 17:08:21 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -2.3\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_MED=-2.3] 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 Yhpgj1Fh1vwm for <notmuch@notmuchmail.org>;\r
+       Fri, 17 Oct 2014 17:08:14 -0700 (PDT)\r
+Received: from outgoing-mail.its.caltech.edu (outgoing-mail.its.caltech.edu\r
+       [131.215.239.19])\r
+       by olra.theworths.org (Postfix) with ESMTP id B6344431FB6\r
+       for <notmuch@notmuchmail.org>; Fri, 17 Oct 2014 17:08:14 -0700 (PDT)\r
+Received: from smtp01.caltech.edu (localhost [127.0.0.1])\r
+       by filter-return (Postfix) with ESMTP id 31C2CA0699;\r
+       Fri, 17 Oct 2014 17:08:14 -0700 (PDT)\r
+X-Spam-Scanned: at Caltech-IMSS on smtp01.caltech.edu by amavisd-new\r
+Received: from finestructure.net (dhcp-123-176.caltech.edu [131.215.123.176])\r
+       (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits))\r
+       (No client certificate requested) (Authenticated sender: jrollins)\r
+       by smtp-server.its.caltech.edu (Postfix) with ESMTPSA id 4B322A0659;\r
+       Fri, 17 Oct 2014 17:08:11 -0700 (PDT)\r
+Received: by finestructure.net (Postfix, from userid 1000)\r
+       id 3D10460090; Fri, 17 Oct 2014 17:08:11 -0700 (PDT)\r
+From: Jameson Graef Rollins <jrollins@finestructure.net>\r
+To: sshilovsky@gmail.com, notmuch@notmuchmail.org\r
+Subject: Re: Tabulation in multiline headers\r
+In-Reply-To:\r
+ <CAHc2pO1QjtqMw9rf0aWGup+Bs_ZpvsZ1bd32H0xiDdzQ_k5GFA@mail.gmail.com>\r
+References:\r
+ <CAHc2pO1QjtqMw9rf0aWGup+Bs_ZpvsZ1bd32H0xiDdzQ_k5GFA@mail.gmail.com>\r
+User-Agent: Notmuch/0.18.1+130~g87e77ba (http://notmuchmail.org) Emacs/24.3.1\r
+       (x86_64-pc-linux-gnu)\r
+Date: Fri, 17 Oct 2014 17:08:08 -0700\r
+Message-ID: <87vbnime8n.fsf@servo.finestructure.net>\r
+MIME-Version: 1.0\r
+Content-Type: multipart/signed; boundary="=-=-=";\r
+       micalg=pgp-sha256; protocol="application/pgp-signature"\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, 18 Oct 2014 00:08:21 -0000\r
+\r
+--=-=-=\r
+Content-Type: text/plain\r
+\r
+On Fri, Oct 17 2014, Sergei Shilovsky <sshilovsky@gmail.com> wrote:\r
+> Lets consider this message:\r
+>\r
+>     id:87r5aucoeg.fsf@servo.finestructure.net\r
+>\r
+> Its subject spreads over 2 lines and the 2nd line is indented with\r
+> <Tab> in the file:\r
+>\r
+>     Subject: running the crypto branch [was: Re: Hiding HTML mime-parts and/or\r
+>     <Tab--->scrubbing (gmail's) HTML-based citation]\r
+>\r
+> The issue is that notmuch_message_get_header() returns this whole line\r
+> with the Tab\r
+> character (though I guess it should not):\r
+>\r
+>     running the crypto branch [was: Re: Hiding HTML mime-parts\r
+> and/or<Tab>scrubbing (gmail's) HTML-based citation]\r
+>\r
+> This file could be imported from gmane though with mb2md. My test long\r
+> subject message (sent via gmail) didn't got any tabulation.\r
+\r
+Hi, Sergei.  I'm not clear on where exactly you are seeing a problem\r
+with this tab in the subject line.  Is it showing up somewhere you think\r
+it shouldn't?\r
+\r
+Headers that are broken across multiple lines must be indented, so I\r
+think it is fairly standard for MUAs to insert either a space or a tab\r
+at that point.\r
+\r
+>  No idea where this tabulation could came from, but would that be\r
+> correct to replace <tab> with space in libnotmuch itself?\r
+\r
+User-Agent: Notmuch/0.5-102-ge86ac1d (http://notmuchmail.org) Emacs/23.2.1\r
+       (i486-pc-linux-gnu)\r
+\r
+I'm not sure libnotmuch should be doing any scrubbing of the message\r
+contents.  The emacs UI does seem to replace the tab with a space,\r
+though.  Maybe other MUAs should be doing the same?\r
+\r
+jamie.\r
+\r
+--=-=-=\r
+Content-Type: application/pgp-signature\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v1\r
+\r
+iQIcBAEBCAAGBQJUQa9pAAoJEO00zqvie6q8/3UP/3wcy43sR5izMlWvoClmMNOv\r
+WH3/wDMrRsRw/ybOdu4pMMq14LJ3cC1+89Gy6M/RWO40kkOmd9iqGPBGa4fl/xJv\r
+8hl2FLpjwwPhTYop5uyRCW40M4jkgkqMevlQ6R0JjFiITkTTykT6eeYlpAhSaESG\r
+NwR7JKLPpXpJZHtZqXOQnlxixKWPB/+u3qM9NfuoWgxqIqSxdGuvbVy6O1FI9JWM\r
+FqR/JbOPcObHiLRfPmNGWyPifSjfk9qRIW2Ei/aMK27D95YxB4MPAKbh73fRKkoP\r
+Dwni36/WdGAqM54WH+3J7VnV+Wi4DNkjN5fh+CqYBrh4BFtA7XfJ8vAcH7XqGF98\r
+hd1WBnTLM//YOAj/cW/TXrJbjpL63FeUWT96Hq8OHO9aYd3zHs6aXVfylEHowrAm\r
+odNmbmQfAWThxHlKULGo9YLjEF2v0ZgLFYbbT6+XBqY0xefsmnPboa5mlq9+MaK8\r
+8BnMs9mE0rgPAZscFbm0WzWor08n5uQHcqSyhazVpIM7lo5hlzoFDUjtfO6vZCUE\r
+MtF6HoDFE0qVJskoiOho/1LuaJENEA6o0Ab+leJe2s1Ntm8ma0PQkYdcNBJ444Rx\r
+DACl04PZgpDK7ZabrLqY7pYmUeLPsq816Ko683XGAzQqvhhr0E4nUpJ7SIqCChYG\r
+pwhetjN10nlW1WQv+5kD\r
+=zFtD\r
+-----END PGP SIGNATURE-----\r
+--=-=-=--\r