From: Johannes Schauer Date: Fri, 18 Sep 2015 12:37:24 +0000 (+0200) Subject: Re: [bug] notmuch requires Content-Disposition mime header value to be lower case X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f04b49abc7abfb86f2aad8ea65434b256b4b16ac;p=notmuch-archives.git Re: [bug] notmuch requires Content-Disposition mime header value to be lower case --- diff --git a/9e/23c6b0b8dd1a9507571d78664627c781c39c8a b/9e/23c6b0b8dd1a9507571d78664627c781c39c8a new file mode 100644 index 000000000..085039ab3 --- /dev/null +++ b/9e/23c6b0b8dd1a9507571d78664627c781c39c8a @@ -0,0 +1,112 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by arlo.cworth.org (Postfix) with ESMTP id 346D36DE0214 + for ; Fri, 18 Sep 2015 05:37:31 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at cworth.org +X-Spam-Flag: NO +X-Spam-Score: 0 +X-Spam-Level: +X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] + autolearn=disabled +Received: from arlo.cworth.org ([127.0.0.1]) + by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id 0SP3vx3b8a16 for ; + Fri, 18 Sep 2015 05:37:29 -0700 (PDT) +Received: from fulda116.server4you.de (fulda116.server4you.de [62.75.219.19]) + by arlo.cworth.org (Postfix) with ESMTP id 1B1196DE01F7 + for ; Fri, 18 Sep 2015 05:37:28 -0700 (PDT) +Received: from localhost (tmo-109-148.customers.d1-online.com + [80.187.109.148]) by mister-muffin.de (Postfix) with ESMTPSA id 134BC802C3; + Fri, 18 Sep 2015 14:37:26 +0200 (CEST) +Content-Type: multipart/signed; protocol="application/pgp-signature"; + micalg="pgp-sha256"; boundary="===============6402915917846772128==" +MIME-Version: 1.0 +Content-Disposition: inline +From: Johannes Schauer +User-Agent: alot/0.3.6 +To: David Bremner , notmuch@notmuchmail.org +References: <20150917070056.1941.94846@localhost> + <20150917083612.1941.22480@localhost> + <20150917083956.1941.35098@localhost> <87pp1grl2v.fsf@maritornes.cs.unb.ca> +In-Reply-To: <87pp1grl2v.fsf@maritornes.cs.unb.ca> +Message-ID: <20150918123724.1941.3900@localhost> +Subject: Re: [bug] notmuch requires Content-Disposition mime header value to + be lower case +Date: Fri, 18 Sep 2015 14:37:24 +0200 +X-Mailman-Approved-At: Fri, 18 Sep 2015 09:20:52 -0700 +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.18 +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: Fri, 18 Sep 2015 12:37:31 -0000 + +--===============6402915917846772128== +Content-Type: text/plain; charset="utf-8" +MIME-Version: 1.0 +Content-Transfer-Encoding: quoted-printable + +Hi, + +Quoting David Bremner (2015-09-18 14:03:20) +> I'd recommend making your own new test, rather than modifying existing +> ones to test multiple things. I'd also recommend using json / sexp +> output for your tests, since the ad-hoc text format is kindof +> semi-deprecated. + +can you take care of that? My goal was actually just to report this bug, no= +t to +spend more time to develop a proper patch for it :) + +Also, a related problem occurs when the Content-Disposition header contains +UTF8 characters, in which case the header value gets encoded. Apparently +notmuch does not attempt to decode it. Example mime header: + +--=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D7161366892858136962=3D=3D +Content-Type: application/pdf +MIME-Version: 1.0 +Content-Transfer-Encoding: base64 +Content-Disposition: =3D?utf-8?b?YXR0YWNobWVudDsgZmlsZW5hbWU9ImJlZ3LDvMOfdW= +5n?=3D + =3D?utf-8?b?LnBkZiI=3D?=3D + + + +Thanks! + +cheers, josch + +--===============6402915917846772128== +MIME-Version: 1.0 +Content-Transfer-Encoding: 7bit +Content-Description: signature +Content-Type: application/pgp-signature; name="signature.asc"; charset="us-ascii" + +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2 + +iQIcBAABCAAGBQJV/AWEAAoJEPLLpcePvYPhmIQQAKzQ2jHrlArH8TOK2Jc6Sj4a +u+bIlsRfYhvfFxp0dwXXUEh1zwSiEdvdPb9oMYavggMlZz3Yog+T2KBxQEvU+Q6j +Zc0ucb+TtuyzkmBMyijWuefsPVqMioHnyZdDxM7he3QCQBsJWQ9jOAXZ8BjEtmqA +ciISmXNUf9jtcAJh3ZIssAT+5V+oKlGIBFjXlZCekBOumlOH/L9ej/L02EsyOvNE +KTrdgtaWu/NnU0tbULgJxv7j8Via+0et5SJeaw0WsF9eYiuRVx99AnzhW2Wf6NhI +QYgCeNIQagr0RTzI/ufGDfZD4t+LHVD1IZQ4jlNCT2o7zPVCCFSMHOf1zOQDG6Hs +paOgfYSYNrPMUQYDnjqDElc7dV4viVzsMWIXw9YL/pW5sTtbfRX7+ZdM0OmXR4c7 +lKx52dGYie+EQ2pU2GzOgJ+LEXMhbCl9w/jhEQdo5LsUdEL9MKS69V/RS1NpgMsP +ySzYl1FOhZzj38XrePKvO5wc5EFj5S7zXaTPkAXMAKhML2I4hShPmUkJQEr2zwt6 +lcKqVA+005+oxppLXrMvUO4PflpZAaQcopi/XTQ2w/885Q7P1Bhhke4AwNpY59l3 +0GGdg28giEX7cgq5AwzV4zia0lwt7+nH8MGgOSHsRhmdsJcEEj06nVsw+8E12lkA +rbTH+NWBLd0c+nWm0AYC +=tIQp +-----END PGP SIGNATURE----- + +--===============6402915917846772128==--