Re: Tabulation in multiline headers
authorSergei Shilovsky <sshilovsky@gmail.com>
Sat, 18 Oct 2014 01:37:39 +0000 (05:37 +0400)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 18:05:20 +0000 (10:05 -0800)
57/ae2de0c4b49cb625666cbdca4d3943ec7a8bf3 [new file with mode: 0644]

diff --git a/57/ae2de0c4b49cb625666cbdca4d3943ec7a8bf3 b/57/ae2de0c4b49cb625666cbdca4d3943ec7a8bf3
new file mode 100644 (file)
index 0000000..aeb6071
--- /dev/null
@@ -0,0 +1,86 @@
+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 999B8431FC9\r
+       for <notmuch@notmuchmail.org>; Fri, 17 Oct 2014 18:37:44 -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 VJaqw7AaMIQY for <notmuch@notmuchmail.org>;\r
+       Fri, 17 Oct 2014 18:37:39 -0700 (PDT)\r
+Received: from mail-ob0-f177.google.com (mail-ob0-f177.google.com\r
+       [209.85.214.177]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id CFA30431FB6\r
+       for <notmuch@notmuchmail.org>; Fri, 17 Oct 2014 18:37:39 -0700 (PDT)\r
+Received: by mail-ob0-f177.google.com with SMTP id uy5so1457202obc.36\r
+       for <notmuch@notmuchmail.org>; Fri, 17 Oct 2014 18:37:39 -0700 (PDT)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
+       h=mime-version:reply-to:in-reply-to:references:date:message-id\r
+       :subject:from:to:cc:content-type:content-transfer-encoding;\r
+       bh=upatq7kMej6RrhE6cIMwpCWG31SOaXMtPISdpJl/ZWU=;\r
+       b=zKFxiDMZ8svWIQ9xYtikQ9aSQ4DHPm6DaAqu8vFKSqb4uB60WSjbeJMqzGQUyVNMOr\r
+       W8EoSRzm8b+HPN2wg30fVFI2LxeSWhnndI4dFE0wTPQcJIy7fdtnQmWykSJq1AEySpvg\r
+       JvFXv0NsRs0Vw4NL2UAwsDC/LSdB2Yd8LBtB1ubS6J5va9uwg1D7zU/+BC3OJ2PXlPaG\r
+       ts5Rp406t+6GGl3hZRN34+9qDqBCyBfRzgb79pw9sftaQkN6Fi8t3lWOrJXcwEXWUdnf\r
+       dFH+QauLs+RkpRz5+FDoL2Mm+OjROqBIf4BqrMYANDBwQIwB6O83WFuXWCjAeh4RFp6n\r
+       yWzg==\r
+MIME-Version: 1.0\r
+X-Received: by 10.182.81.97 with SMTP id z1mr10014071obx.35.1413596259292;\r
+       Fri, 17 Oct 2014 18:37:39 -0700 (PDT)\r
+Received: by 10.76.41.3 with HTTP; Fri, 17 Oct 2014 18:37:39 -0700 (PDT)\r
+In-Reply-To: <87vbnime8n.fsf@servo.finestructure.net>\r
+References:\r
+ <CAHc2pO1QjtqMw9rf0aWGup+Bs_ZpvsZ1bd32H0xiDdzQ_k5GFA@mail.gmail.com>\r
+       <87vbnime8n.fsf@servo.finestructure.net>\r
+Date: Sat, 18 Oct 2014 05:37:39 +0400\r
+Message-ID:\r
+ <CAHc2pO21-pahkpyT1jYk2ExWHDGiOO+weovMA-vd8s82LpqK4A@mail.gmail.com>\r
+Subject: Re: Tabulation in multiline headers\r
+From: Sergei Shilovsky <sshilovsky@gmail.com>\r
+To: Jameson Graef Rollins <jrollins@finestructure.net>\r
+Content-Type: text/plain; charset=UTF-8\r
+Content-Transfer-Encoding: quoted-printable\r
+Cc: notmuch@notmuchmail.org\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: Sat, 18 Oct 2014 01:37:44 -0000\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
+It is shown in e.g. `notmuch show` as well as\r
+'notmuch_message_get_header(m, "subject")`\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
+My point is that this tabulation character does not relate to the\r
+contents of the header (this might be arguable though) and libnotmuch\r
+should return the contents, not its representation on file system.\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