Re: [PATCH v4 16/16] add "notmuch reindex" subcommand
[notmuch-archives.git] / a9 / a9443a73f2ebd90584ed4713ed6fbc3b01e7e9
1 Return-Path: <cworth@cworth.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 olra.theworths.org (Postfix) with ESMTP id 38615429E25\r
6         for <notmuch@notmuchmail.org>; Tue, 31 May 2011 16:31:45 -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.01\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0.01 tagged_above=-999 required=5\r
12         tests=[T_MIME_NO_TEXT=0.01] autolearn=disabled\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id n0MXhTaZTBUO for <notmuch@notmuchmail.org>;\r
16         Tue, 31 May 2011 16:31:44 -0700 (PDT)\r
17 Received: from arlo.cworth.org (arlo.cworth.org [50.43.72.2])\r
18         by olra.theworths.org (Postfix) with ESMTP id A9790431FD0\r
19         for <notmuch@notmuchmail.org>; Tue, 31 May 2011 16:31:44 -0700 (PDT)\r
20 Received: from yoom.home.cworth.org (localhost [127.0.0.1])\r
21         by arlo.cworth.org (Postfix) with ESMTP id BA5B529A524\r
22         for <notmuch@notmuchmail.org>; Tue, 31 May 2011 16:31:43 -0700 (PDT)\r
23 Received: by yoom.home.cworth.org (Postfix, from userid 1000)\r
24         id A964225417D; Tue, 31 May 2011 16:31:43 -0700 (PDT)\r
25 From: Carl Worth <cworth@cworth.org>\r
26 To: notmuch@notmuchmail.org\r
27 Subject: Fixed recent regression (corruption of binary parts)\r
28 User-Agent: Notmuch/0.5 (http://notmuchmail.org) Emacs/23.3.1\r
29         (i486-pc-linux-gnu)\r
30 Date: Tue, 31 May 2011 16:31:43 -0700\r
31 Message-ID: <874o4a1m74.fsf@yoom.home.cworth.org>\r
32 MIME-Version: 1.0\r
33 Content-Type: multipart/signed; boundary="=-=-=";\r
34         micalg=pgp-sha1; protocol="application/pgp-signature"\r
35 X-BeenThere: notmuch@notmuchmail.org\r
36 X-Mailman-Version: 2.1.13\r
37 Precedence: list\r
38 List-Id: "Use and development of the notmuch mail system."\r
39         <notmuch.notmuchmail.org>\r
40 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
41         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
42 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
43 List-Post: <mailto:notmuch@notmuchmail.org>\r
44 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
45 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
46         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
47 X-List-Received-Date: Tue, 31 May 2011 23:31:45 -0000\r
48 \r
49 --=-=-=\r
50 Content-Transfer-Encoding: quoted-printable\r
51 \r
52 I just fixed a bug that I should at least mention to the list.\r
53 \r
54 On the notmuch master branch, since May 23, there has been a bug which\r
55 could lead to corruption when saving binary attachments from\r
56 messages.\r
57 \r
58 A recent change to share more code internally (to provide "notmuch show\r
59 =2D-part" rather than a separate top-level command of "notmuch part\r
60 =2D-part") inadvertently passed the part content through a function that\r
61 would convert CRLF character pairs to LF and would also potentially\r
62 convert to UTF-8, (though only if the part being saved had a non-UTF-8\r
63 charset explicitly declared).\r
64 \r
65 Fortunately, I happened to be sent a large attachment hitting the\r
66 CRLF->LF corruption so I was able to find and fix this bug.\r
67 \r
68 I've just pushed a fix for this (along with a test case). So if you're\r
69 running notmuch newer than 0.5, you'll probably want to update to the\r
70 latest to avoid the chance of hitting this bug.\r
71 \r
72 Thanks,\r
73 \r
74 =2DCarl\r
75 \r
76 =2D-=20\r
77 carl.d.worth@intel.com\r
78 \r
79 --=-=-=\r
80 Content-Type: application/pgp-signature\r
81 \r
82 -----BEGIN PGP SIGNATURE-----\r
83 Version: GnuPG v1.4.11 (GNU/Linux)\r
84 \r
85 iEYEARECAAYFAk3lel8ACgkQ6JDdNq8qSWgjpgCfRX9fJ/m4neW6YgM88AEGBnWo\r
86 16EAn2aOmc5CYjHm1LpoBEcaMQGjgYeo\r
87 =jVZk\r
88 -----END PGP SIGNATURE-----\r
89 --=-=-=--\r