Re: [PATCH 0/4] Allow specifying alternate names for addresses in other_email
[notmuch-archives.git] / 03 / ac54e272950c5045fdc1d3e7d7b99d06cea8c3
1 Return-Path: <tomi.ollila@iki.fi>\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 3C61D431FBF\r
6         for <notmuch@notmuchmail.org>; Sun, 31 Mar 2013 02:27:54 -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\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
12         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 7+hJ9xTYSlBy for <notmuch@notmuchmail.org>;\r
16         Sun, 31 Mar 2013 02:27:52 -0700 (PDT)\r
17 Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])\r
18         by olra.theworths.org (Postfix) with ESMTP id 5E053431FAE\r
19         for <notmuch@notmuchmail.org>; Sun, 31 Mar 2013 02:27:52 -0700 (PDT)\r
20 Received: from guru.guru-group.fi (localhost [IPv6:::1])\r
21         by guru.guru-group.fi (Postfix) with ESMTP id 4A737100086;\r
22         Sun, 31 Mar 2013 12:27:51 +0300 (EEST)\r
23 From: Tomi Ollila <tomi.ollila@iki.fi>\r
24 To: Jani Nikula <jani@nikula.org>, notmuch@notmuchmail.org\r
25 Subject: Re: [PATCH v2 0/3] cli: clean up gmime 2.4 vs. 2.6 conditional build\r
26 In-Reply-To: <m2ppyggdh0.fsf@guru.guru-group.fi>\r
27 References: <cover.1364651359.git.jani@nikula.org>\r
28         <m2ppyggdh0.fsf@guru.guru-group.fi>\r
29 User-Agent: Notmuch/0.15.2+50~g43fdda5 (http://notmuchmail.org) Emacs/24.2.1\r
30         (x86_64-unknown-linux-gnu)\r
31 X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL\r
32         $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F\r
33         !)g;OY^,BjTbr)Np:%c_o'jj,Z\r
34 Date: Sun, 31 Mar 2013 12:27:51 +0300\r
35 Message-ID: <m2mwtjhqaw.fsf@guru.guru-group.fi>\r
36 MIME-Version: 1.0\r
37 Content-Type: text/plain\r
38 X-BeenThere: notmuch@notmuchmail.org\r
39 X-Mailman-Version: 2.1.13\r
40 Precedence: list\r
41 List-Id: "Use and development of the notmuch mail system."\r
42         <notmuch.notmuchmail.org>\r
43 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
44         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
45 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
46 List-Post: <mailto:notmuch@notmuchmail.org>\r
47 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
48 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
49         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
50 X-List-Received-Date: Sun, 31 Mar 2013 09:27:54 -0000\r
51 \r
52 On Sun, Mar 31 2013, Tomi Ollila <tomi.ollila@iki.fi> wrote:\r
53 \r
54 > On Sat, Mar 30 2013, Jani Nikula <jani@nikula.org> wrote:\r
55 >\r
56 >> This is v2 of [1]. Added comments per David's request, and while at it,\r
57 >> added a third patch to conform the existing conditional build in notmuch\r
58 >> show to the same style. The whole series should have no functional\r
59 >> changes, and thus v2 should have no functional changes since v1. ;)\r
60 >>\r
61 >> I have not tested this on gmime 2.4.\r
62 >\r
63 > I have gmime 2.4(.24) on this system. The code compiles and\r
64 > exactly the same set of tests pass/fail as without this patch\r
65 > (unfortunately this system cannot cope with just some of the\r
66 > crypto patches, so I cannot give absolute guarantee:\r
67 \r
68 Ok, the failure cases below are just those which are changed in\r
69 this patch. So I had to dig further...\r
70 \r
71 ... actually this\r
72   'PASS   emacs delivery of encrypted message with attachment'\r
73 fails to deliver the message.\r
74 \r
75 After the following change:\r
76 \r
77 --- a/test/test-lib.sh\r
78 +++ b/test/test-lib.sh\r
79 @@ -442,7 +442,8 @@ emacs_deliver_message ()\r
80  \r
81      test_emacs \\r
82         "(let ((message-send-mail-function 'message-smtpmail-send-it)\r
83 -              (smtpmail-smtp-server \"localhost\")\r
84 +              (smtpmail-smtp-server 'local)\r
85 +              ;;(smtpmail-smtp-server \"localhost\")\r
86                (smtpmail-smtp-service \"25025\"))\r
87            (notmuch-hello)\r
88            (notmuch-mua-mail)\r
89 \r
90 The failured cases below PASSes.\r
91 \r
92 (I've stumbled the same problem a few cases before but haven't \r
93 figured out a good patch so far...)\r
94 \r
95 >\r
96 > crypto: Testing PGP/MIME signature verification and decryption\r
97 >  PASS   emacs delivery of signed message\r
98 >  PASS   signature verification\r
99 >  PASS   signature verification with full owner trust\r
100 >  PASS   signature verification with signer key unavailable\r
101 >  PASS   emacs delivery of encrypted message with attachment\r
102 >  FAIL   decryption, --format=text\r
103 >  FAIL   decryption, --format=json\r
104 >  FAIL   decryption, --format=json, --part=4\r
105 >  FAIL   decrypt attachment (--part=5 --format=raw)\r
106 >  FAIL   decryption failure with missing key\r
107 >  PASS   emacs delivery of encrypted + signed message\r
108 >  FAIL   decryption + signature verification\r
109 >  FAIL   reply to encrypted message\r
110 >  FAIL   signature verification with revoked key\r
111 >\r
112 > anyway, as said, exactly the same set fails without these pathes\r
113 >\r
114 > The reason for failure is most probably in my system and not something\r
115 > w/ notmuch crypto support -- If I run `emacs foo.org.gpg` this just\r
116 > hangs waiting me to give passphrase in (invisible?) curses request)\r
117 >\r
118 > So, bottom line: LGTM.\r
119 >\r
120 >> BR,\r
121 >> Jani.\r
122 >\r
123 > Tomi\r
124 >\r
125 >\r
126 >> [1] id:a9f12ba474fc51df71e2fd2b7a20a8d101729c6e.1362319765.git.jani@nikula.org\r
127 >>\r
128 >> Jani Nikula (3):\r
129 >>   cli: crypto: abstract gpg context creation for clarity\r
130 >>   cli: mime node: abstract decryption and signature verification\r
131 >>   cli: conform to same conditional build style as elsewhere in\r
132 >>     notmuch-show\r
133 >>\r
134 >>  crypto.c       |   66 ++++++++++++-----\r
135 >>  mime-node.c    |  218 ++++++++++++++++++++++++++++++++++++--------------------\r
136 >>  notmuch-show.c |   46 ++++++------\r
137 >>  3 files changed, 215 insertions(+), 115 deletions(-)\r
138 >>\r
139 >> -- \r
140 >> 1.7.10.4\r