Re: [PATCH v4 02/16] Move crypto.c into libutil
[notmuch-archives.git] / 6a / aea24b9a4e6354a810106b483e9d9bca3a48ff
1 Return-Path: <dme@dme.org>\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 arlo.cworth.org (Postfix) with ESMTP id 92A086DE00F5\r
6  for <notmuch@notmuchmail.org>; Tue,  3 May 2016 03:28:28 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at cworth.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.185\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.185 tagged_above=-999 required=5\r
12  tests=[AWL=-0.118, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,\r
13  RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01,\r
14  RCVD_IN_MSPIKE_WL=-0.01, SPF_NEUTRAL=0.652, UNPARSEABLE_RELAY=0.001]\r
15  autolearn=disabled\r
16 Received: from arlo.cworth.org ([127.0.0.1])\r
17  by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
18  with ESMTP id E_ghINMwMZbU for <notmuch@notmuchmail.org>;\r
19  Tue,  3 May 2016 03:28:19 -0700 (PDT)\r
20 Received: from mail-wm0-f52.google.com (mail-wm0-f52.google.com\r
21  [74.125.82.52]) by arlo.cworth.org (Postfix) with ESMTPS id 679A46DE00CE for\r
22  <notmuch@notmuchmail.org>; Tue,  3 May 2016 03:28:19 -0700 (PDT)\r
23 Received: by mail-wm0-f52.google.com with SMTP id a17so30561623wme.0\r
24  for <notmuch@notmuchmail.org>; Tue, 03 May 2016 03:28:19 -0700 (PDT)\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
26  d=dme-org.20150623.gappssmtp.com; s=20150623;\r
27  h=to:subject:in-reply-to:references:from:date:message-id:mime-version;\r
28  bh=44rp5rV/jE5sc0G3Orm4ePHyRcZ8a+kJe4dXrucmKtU=;\r
29  b=axOuh4otVcojPFkDgQfJmAGEsceNAQiiwyo1EkAxVj5N4hegclWStM4HnRYYlDaToq\r
30  M64IBEkvVvChWXNe5xtfsMBwndwCLjEzxsYYbwXZKIomQw2XtO+u1e0xjAwdBn0Xzt9z\r
31  khFICzXrl4zZIhpdUt80hP3AmiXbKxKQfZCdQFlj0GT31hU0MKoZoEovKa6z/eM86A1E\r
32  hKTwrEg+7tbsLQyNEyehexWS8HtxNBnZykAB4pvohGw2bBgsShF3ETBrHwmjYWt6Ffj7\r
33  SsN8adYZr8T/mgOsM8YLJHFKAPBgdxcpOuMEaA0NUEx3FBUKWhlkC4Na1g15TFb7jsa9\r
34  zd7g==\r
35 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
36  d=1e100.net; s=20130820;\r
37  h=x-gm-message-state:to:subject:in-reply-to:references:from:date\r
38  :message-id:mime-version;\r
39  bh=44rp5rV/jE5sc0G3Orm4ePHyRcZ8a+kJe4dXrucmKtU=;\r
40  b=mRR1kC7evG/0MbybZWxVt4LsqXNpfBN+r3XjMzk8yrcqpbioh5KfTZYw5UP/6jhxcr\r
41  3bGzNZfg0SqXkwML5YvZvaW+xtcGYOpNB1P6rStZyZuYhQa2Bbq030o5kZtoHFSoSM8V\r
42  QjEfNkBLOBeV3iqjpFzv9j9GlL2W88JgcHyGuk/0tMkpk53PKvmvPjmegNLSsyEmL6Zk\r
43  T8zYraiAMm2CnvMR8Z76jI3yYJBCpxwRHS6jGaz8ahLE24ZO5qFnBhcVQGuWgxi0txo1\r
44  Et++sYoT6VM+520c3B6jAT3xQfO+phdCgHh2c6XbfBU3HTSwN33sZyVcOR4V6K03+9yQ\r
45  5azQ==\r
46 X-Gm-Message-State:\r
47  AOPr4FVOVEOhRK7WeWBuMt8+rolVNhM9ryyRQ1Wd+RBvGkRiLprPyMAKYoajWnU8SO5k+Q==\r
48 X-Received: by 10.28.6.138 with SMTP id 132mr23270653wmg.60.1462271298049;\r
49  Tue, 03 May 2016 03:28:18 -0700 (PDT)\r
50 Received: from disaster-area.hh.sledj.net\r
51  ([2a01:348:1a2:1:ea39:35ff:fe2c:a227])\r
52  by smtp.gmail.com with ESMTPSA id d79sm23751800wmi.23.2016.05.03.03.28.16\r
53  (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r
54  Tue, 03 May 2016 03:28:16 -0700 (PDT)\r
55 Received: from localhost (disaster-area.hh.sledj.net [local])\r
56  by disaster-area.hh.sledj.net (OpenSMTPD) with ESMTPA id 87fe421f;\r
57  Tue, 3 May 2016 10:28:15 +0000 (UTC)\r
58 To: Mark Walters <markwalters1009@gmail.com>, notmuch@notmuchmail.org\r
59 Subject: Re: [PATCH v1 1/2] emacs: Observe the charset of MIME parts when\r
60  reading them.\r
61 In-Reply-To: <877ffc9agl.fsf@qmul.ac.uk>\r
62 References: <1461999108-68582-1-git-send-email-dme@dme.org>\r
63  <1461999108-68582-2-git-send-email-dme@dme.org> <877ffc9agl.fsf@qmul.ac.uk>\r
64 From: David Edmondson <dme@dme.org>\r
65 Date: Tue, 03 May 2016 11:28:15 +0100\r
66 Message-ID: <m2a8k7e8qo.fsf@dme.org>\r
67 MIME-Version: 1.0\r
68 Content-Type: text/plain\r
69 X-BeenThere: notmuch@notmuchmail.org\r
70 X-Mailman-Version: 2.1.20\r
71 Precedence: list\r
72 List-Id: "Use and development of the notmuch mail system."\r
73  <notmuch.notmuchmail.org>\r
74 List-Unsubscribe: <https://notmuchmail.org/mailman/options/notmuch>,\r
75  <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
76 List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
77 List-Post: <mailto:notmuch@notmuchmail.org>\r
78 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
79 List-Subscribe: <https://notmuchmail.org/mailman/listinfo/notmuch>,\r
80  <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
81 X-List-Received-Date: Tue, 03 May 2016 10:28:28 -0000\r
82 \r
83 On Mon, May 02 2016, Mark Walters wrote:\r
84 > On Sat, 30 Apr 2016, David Edmondson <dme@dme.org> wrote:\r
85 >> `notmuch--get-bodypart-raw' previously assumed that all non-binary MIME\r
86 >> parts could be successfully read by assuming that they were UTF-8\r
87 >> encoded. This was demonstrated to be wrong, specifically when a part was\r
88 >> marked as ISO8859-1 and included accented characters (which were\r
89 >> incorrectly rendered as a result).\r
90 >>\r
91 >> Rather than assuming UTF-8, attempt to use the part's declared charset\r
92 >> when reading it, falling back to US-ASCII if the declared charset is\r
93 >> unknown, unsupported or invalid.\r
94 >\r
95 > As this seemed hard to test (if I understand the bug correctly it didn't\r
96 > show up on my test of the entire of the entire performance corpus -- of\r
97 > course my testing could have been wrong) would it be possible to add a test\r
98 > for it?\r
99 \r
100 I agree that we should have a test, and I will make one.\r
101 \r
102 (/me lives in fear of the day when bremner introduces a "no fixes\r
103 without tests" policy...)\r