[PATCH 6/9] CLI: refactor dumping of tags.
[notmuch-archives.git] / b5 / 48d001c0c3eafcfa14cd3b22356567423eaa94
1 Return-Path: <sshilovsky@gmail.com>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5         by olra.theworths.org (Postfix) with ESMTP id D2B70431FB6\r
6         for <notmuch@notmuchmail.org>; Fri, 17 Oct 2014 16:45:28 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.799\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5\r
12         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
13         FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
14 Received: from olra.theworths.org ([127.0.0.1])\r
15         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
16         with ESMTP id y7BMSOU-mk3k for <notmuch@notmuchmail.org>;\r
17         Fri, 17 Oct 2014 16:45:22 -0700 (PDT)\r
18 Received: from mail-oi0-f42.google.com (mail-oi0-f42.google.com\r
19         [209.85.218.42]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
20         (No client certificate requested)\r
21         by olra.theworths.org (Postfix) with ESMTPS id AB940431FAE\r
22         for <notmuch@notmuchmail.org>; Fri, 17 Oct 2014 16:45:22 -0700 (PDT)\r
23 Received: by mail-oi0-f42.google.com with SMTP id a141so1367169oig.1\r
24         for <notmuch@notmuchmail.org>; Fri, 17 Oct 2014 16:45:22 -0700 (PDT)\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
26         h=mime-version:reply-to:date:message-id:subject:from:to:content-type\r
27         :content-transfer-encoding;\r
28         bh=yvfXrrP+e4UzkbVxrvUEewLJC4+aNfDb7FJxZaKp8kk=;\r
29         b=G1Vr+ADtxMg40a+n2TEajESXxbWOic4RYPX9DiSqsIj1oKJyrCGQ9AgwIVJ7DZCHSL\r
30         ZEPsK3llxfv8DY8E6woQal/d4sOGD2twwGnt/tAFYbVC9RdoknoaRmIPjmk284R7VEO+\r
31         pSkFYPy23HOiP+6eehttDNgGdqwgBcRqbaYA+KHrCNFTJIuOQBEtKikmvrsd+rxhxatZ\r
32         UHnPxBe+iEY6I3cLgabEitdpuHFDpwIdQL4M24MDDW0Qfed8yO745FQYOx0InefKhL/+\r
33         j58sZ+ZRDEsb98IYKGPI7GY7OO+K/0/1CSUCT2MbvNf5+DCvnA9Pl7jnnoIhYDy+HvBY\r
34         Ac5w==\r
35 MIME-Version: 1.0\r
36 X-Received: by 10.182.32.33 with SMTP id f1mr9403225obi.34.1413589522192; Fri,\r
37         17 Oct 2014 16:45:22 -0700 (PDT)\r
38 Received: by 10.76.41.3 with HTTP; Fri, 17 Oct 2014 16:45:22 -0700 (PDT)\r
39 Date: Sat, 18 Oct 2014 03:45:22 +0400\r
40 Message-ID:\r
41  <CAHc2pO1QjtqMw9rf0aWGup+Bs_ZpvsZ1bd32H0xiDdzQ_k5GFA@mail.gmail.com>\r
42 Subject: Tabulation in multiline headers\r
43 From: Sergei Shilovsky <sshilovsky@gmail.com>\r
44 To: notmuch@notmuchmail.org\r
45 Content-Type: text/plain; charset=UTF-8\r
46 Content-Transfer-Encoding: quoted-printable\r
47 X-BeenThere: notmuch@notmuchmail.org\r
48 X-Mailman-Version: 2.1.13\r
49 Precedence: list\r
50 Reply-To: sshilovsky@gmail.com\r
51 List-Id: "Use and development of the notmuch mail system."\r
52         <notmuch.notmuchmail.org>\r
53 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
54         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
55 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
56 List-Post: <mailto:notmuch@notmuchmail.org>\r
57 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
58 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
59         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
60 X-List-Received-Date: Fri, 17 Oct 2014 23:45:29 -0000\r
61 \r
62 Lets consider this message:\r
63 \r
64     id:87r5aucoeg.fsf@servo.finestructure.net\r
65 \r
66 Its subject spreads over 2 lines and the 2nd line is indented with\r
67 <Tab> in the file:\r
68 \r
69     Subject: running the crypto branch [was: Re: Hiding HTML mime-parts and=\r
70 /or\r
71     <Tab--->scrubbing (gmail's) HTML-based citation]\r
72 \r
73 The issue is that notmuch_message_get_header() returns this whole line\r
74 with the Tab\r
75 character (though I guess it should not):\r
76 \r
77     running the crypto branch [was: Re: Hiding HTML mime-parts\r
78 and/or<Tab>scrubbing (gmail's) HTML-based citation]\r
79 \r
80 This file could be imported from gmane though with mb2md. My test long\r
81 subject message (sent via gmail) didn't got any tabulation.\r
82 \r
83  No idea where this tabulation could came from, but would that be\r
84 correct to replace <tab> with space in libnotmuch itself?\r
85 \r
86 --=20\r
87 =D0=A1 =D1=83=D0=B2=D0=B0=D0=B6=D0=B5=D0=BD=D0=B8=D0=B5=D0=BC,\r
88 =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
89 =D0=BA=D0=B8=D0=B9\r
90 Sergei Shilovsky\r