Tabulation in multiline headers
authorSergei Shilovsky <sshilovsky@gmail.com>
Fri, 17 Oct 2014 23:45:22 +0000 (03:45 +0400)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 18:05:19 +0000 (10:05 -0800)
b5/48d001c0c3eafcfa14cd3b22356567423eaa94 [new file with mode: 0644]

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