1 Return-Path: <zack@upsilon.cc>
\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 CB888431FD2
\r
6 for <notmuch@notmuchmail.org>; Mon, 9 Feb 2015 01:41:43 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=2.338 tagged_above=-999 required=5
\r
12 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
\r
13 DNS_FROM_AHBL_RHSBL=2.438] 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 dnotUR8KEiWO for <notmuch@notmuchmail.org>;
\r
17 Mon, 9 Feb 2015 01:41:40 -0800 (PST)
\r
18 Received: from upsilon.cc (upsilon.cc [178.32.142.91])
\r
19 by olra.theworths.org (Postfix) with ESMTP id E98D9431FC4
\r
20 for <notmuch@notmuchmail.org>; Mon, 9 Feb 2015 01:41:39 -0800 (PST)
\r
21 Received: from timira.takhisis.invalid (maths.r-prg.net.univ-paris7.fr
\r
22 [81.194.27.158]) by upsilon.cc (Postfix) with ESMTPSA id D01EE10E51;
\r
23 Mon, 9 Feb 2015 10:41:34 +0100 (CET)
\r
24 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=upsilon.cc; s=mail;
\r
25 t=1423474894; bh=YIHNS6Z50tKWMS/PxF5M/yW1TMwcsXwOSrK6/Yi8sWY=;
\r
26 h=From:To:Cc:Subject:Date:From;
\r
27 b=hCDUnPBcEvIrbmY/COQyK05Wpp3qsyUhcUkr36WV1Lrh0OH0V9ImPSsA2fMSWMIGB
\r
28 fMY5vBj6z9bGp1Nzd1ExNceDolKFi5eYXJZdA3Q0yr2my0uYZLKWwP9E1G6Dy6OmTL
\r
29 5KK5TG+3GKFlZtYHIYNlfJJ3emqp+KrzmU4LJZOY=
\r
30 Received: by timira.takhisis.invalid (Postfix, from userid 1000)
\r
31 id 5C8D9600E1; Mon, 9 Feb 2015 10:41:34 +0100 (CET)
\r
32 From: Stefano Zacchiroli <zack@upsilon.cc>
\r
33 To: notmuch@notmuchmail.org
\r
34 Subject: notmuch-mutt: support for messages that lack Message-ID (v2)
\r
35 Date: Mon, 9 Feb 2015 10:41:28 +0100
\r
36 Message-Id: <1423474890-16972-1-git-send-email-zack@upsilon.cc>
\r
37 X-Mailer: git-send-email 2.1.4
\r
39 X-BeenThere: notmuch@notmuchmail.org
\r
40 X-Mailman-Version: 2.1.13
\r
42 List-Id: "Use and development of the notmuch mail system."
\r
43 <notmuch.notmuchmail.org>
\r
44 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
45 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
46 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
47 List-Post: <mailto:notmuch@notmuchmail.org>
\r
48 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
49 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
50 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
51 X-List-Received-Date: Mon, 09 Feb 2015 09:41:44 -0000
\r
53 Heya, please find attached the second take on adding support for
\r
54 messages that lack Message-ID to notmuch-mutt. For context see
\r
55 http://notmuchmail.org/pipermail/notmuch/2015/thread.html#20079
\r
57 In this new verison of the patch we start computing the SHA1
\r
58 incrementally, in case no Message-ID will be found. As soon as the
\r
59 header is over we parse it (using Mail::Header, to properly handle
\r
60 line breaks). If a Message-ID is found, it is retourned and SHA1
\r
61 computation on the rest of the message is aborted. If no Message-ID is
\r
62 found, SHA1 computation continues, and is used in the end to
\r
63 synthesize a fake Message-ID in the same way that notmuch itself would
\r
66 Note that, contrary to the previous version, no changes of the Debian
\r
67 packaging are needed this time: Mail::Header is contained in the same
\r
68 package of Mail::Internet that notmuch-mutt was already using, and
\r
69 Digest::SHA is shipped with Perl itself.
\r
71 Please consider applying this patch to notmuch's master branch.
\r