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