From 8cb3a75bd80f5842548a40a6233212bb8d16c688 Mon Sep 17 00:00:00 2001 From: Sergei Shilovsky Date: Sat, 18 Oct 2014 03:45:22 +0400 Subject: [PATCH] Tabulation in multiline headers --- b5/48d001c0c3eafcfa14cd3b22356567423eaa94 | 90 +++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 b5/48d001c0c3eafcfa14cd3b22356567423eaa94 diff --git a/b5/48d001c0c3eafcfa14cd3b22356567423eaa94 b/b5/48d001c0c3eafcfa14cd3b22356567423eaa94 new file mode 100644 index 000000000..57d4f7321 --- /dev/null +++ b/b5/48d001c0c3eafcfa14cd3b22356567423eaa94 @@ -0,0 +1,90 @@ +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 D2B70431FB6 + for ; Fri, 17 Oct 2014 16:45:28 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: -0.799 +X-Spam-Level: +X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5 + tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, + FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] 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 y7BMSOU-mk3k for ; + Fri, 17 Oct 2014 16:45:22 -0700 (PDT) +Received: from mail-oi0-f42.google.com (mail-oi0-f42.google.com + [209.85.218.42]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id AB940431FAE + for ; Fri, 17 Oct 2014 16:45:22 -0700 (PDT) +Received: by mail-oi0-f42.google.com with SMTP id a141so1367169oig.1 + for ; Fri, 17 Oct 2014 16:45:22 -0700 (PDT) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; + h=mime-version:reply-to:date:message-id:subject:from:to:content-type + :content-transfer-encoding; + bh=yvfXrrP+e4UzkbVxrvUEewLJC4+aNfDb7FJxZaKp8kk=; + b=G1Vr+ADtxMg40a+n2TEajESXxbWOic4RYPX9DiSqsIj1oKJyrCGQ9AgwIVJ7DZCHSL + ZEPsK3llxfv8DY8E6woQal/d4sOGD2twwGnt/tAFYbVC9RdoknoaRmIPjmk284R7VEO+ + pSkFYPy23HOiP+6eehttDNgGdqwgBcRqbaYA+KHrCNFTJIuOQBEtKikmvrsd+rxhxatZ + UHnPxBe+iEY6I3cLgabEitdpuHFDpwIdQL4M24MDDW0Qfed8yO745FQYOx0InefKhL/+ + j58sZ+ZRDEsb98IYKGPI7GY7OO+K/0/1CSUCT2MbvNf5+DCvnA9Pl7jnnoIhYDy+HvBY + Ac5w== +MIME-Version: 1.0 +X-Received: by 10.182.32.33 with SMTP id f1mr9403225obi.34.1413589522192; Fri, + 17 Oct 2014 16:45:22 -0700 (PDT) +Received: by 10.76.41.3 with HTTP; Fri, 17 Oct 2014 16:45:22 -0700 (PDT) +Date: Sat, 18 Oct 2014 03:45:22 +0400 +Message-ID: + +Subject: Tabulation in multiline headers +From: Sergei Shilovsky +To: notmuch@notmuchmail.org +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: quoted-printable +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +Precedence: list +Reply-To: sshilovsky@gmail.com +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, 17 Oct 2014 23:45:29 -0000 + +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. + + No idea where this tabulation could came from, but would that be +correct to replace with space in libnotmuch itself? + +--=20 +=D0=A1 =D1=83=D0=B2=D0=B0=D0=B6=D0=B5=D0=BD=D0=B8=D0=B5=D0=BC, +=D0=A1=D0=B5=D1=80=D0=B3=D0=B5=D0=B9 =D0=A8=D0=B8=D0=BB=D0=BE=D0=B2=D1=81= +=D0=BA=D0=B8=D0=B9 +Sergei Shilovsky -- 2.26.2