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