Re: [PATCH v2 0/3] cli: clean up gmime 2.4 vs. 2.6 conditional build
authorTomi Ollila <tomi.ollila@iki.fi>
Sun, 31 Mar 2013 08:50:19 +0000 (11:50 +0300)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:54:08 +0000 (09:54 -0800)
da/45691030f753072eb592168aa941ecab7a3246 [new file with mode: 0644]

diff --git a/da/45691030f753072eb592168aa941ecab7a3246 b/da/45691030f753072eb592168aa941ecab7a3246
new file mode 100644 (file)
index 0000000..5af74e3
--- /dev/null
@@ -0,0 +1,114 @@
+Return-Path: <tomi.ollila@iki.fi>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 0D4B9431FBF\r
+       for <notmuch@notmuchmail.org>; Sun, 31 Mar 2013 01:50:22 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
+       autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id 54SC6uTMeSx1 for <notmuch@notmuchmail.org>;\r
+       Sun, 31 Mar 2013 01:50:20 -0700 (PDT)\r
+Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])\r
+       by olra.theworths.org (Postfix) with ESMTP id 91740431FAE\r
+       for <notmuch@notmuchmail.org>; Sun, 31 Mar 2013 01:50:20 -0700 (PDT)\r
+Received: from guru.guru-group.fi (localhost [IPv6:::1])\r
+       by guru.guru-group.fi (Postfix) with ESMTP id 7542F100148;\r
+       Sun, 31 Mar 2013 11:50:19 +0300 (EEST)\r
+From: Tomi Ollila <tomi.ollila@iki.fi>\r
+To: Jani Nikula <jani@nikula.org>, notmuch@notmuchmail.org\r
+Subject: Re: [PATCH v2 0/3] cli: clean up gmime 2.4 vs. 2.6 conditional build\r
+In-Reply-To: <cover.1364651359.git.jani@nikula.org>\r
+References: <cover.1364651359.git.jani@nikula.org>\r
+User-Agent: Notmuch/0.15.2+50~g43fdda5 (http://notmuchmail.org) Emacs/24.2.1\r
+       (x86_64-unknown-linux-gnu)\r
+X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL\r
+       $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F\r
+       !)g;OY^,BjTbr)Np:%c_o'jj,Z\r
+Date: Sun, 31 Mar 2013 11:50:19 +0300\r
+Message-ID: <m2ppyggdh0.fsf@guru.guru-group.fi>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Sun, 31 Mar 2013 08:50:22 -0000\r
+\r
+On Sat, Mar 30 2013, Jani Nikula <jani@nikula.org> wrote:\r
+\r
+> This is v2 of [1]. Added comments per David's request, and while at it,\r
+> added a third patch to conform the existing conditional build in notmuch\r
+> show to the same style. The whole series should have no functional\r
+> changes, and thus v2 should have no functional changes since v1. ;)\r
+>\r
+> I have not tested this on gmime 2.4.\r
+\r
+I have gmime 2.4(.24) on this system. The code compiles and\r
+exactly the same set of tests pass/fail as without this patch\r
+(unfortunately this system cannot cope with just some of the\r
+crypto patches, so I cannot give absolute guarantee:\r
+\r
+crypto: Testing PGP/MIME signature verification and decryption\r
+ PASS   emacs delivery of signed message\r
+ PASS   signature verification\r
+ PASS   signature verification with full owner trust\r
+ PASS   signature verification with signer key unavailable\r
+ PASS   emacs delivery of encrypted message with attachment\r
+ FAIL   decryption, --format=text\r
+ FAIL   decryption, --format=json\r
+ FAIL   decryption, --format=json, --part=4\r
+ FAIL   decrypt attachment (--part=5 --format=raw)\r
+ FAIL   decryption failure with missing key\r
+ PASS   emacs delivery of encrypted + signed message\r
+ FAIL   decryption + signature verification\r
+ FAIL   reply to encrypted message\r
+ FAIL   signature verification with revoked key\r
+\r
+anyway, as said, exactly the same set fails without these pathes\r
+\r
+The reason for failure is most probably in my system and not something\r
+w/ notmuch crypto support -- If I run `emacs foo.org.gpg` this just\r
+hangs waiting me to give passphrase in (invisible?) curses request)\r
+\r
+So, bottom line: LGTM.\r
+\r
+> BR,\r
+> Jani.\r
+\r
+Tomi\r
+\r
+\r
+> [1] id:a9f12ba474fc51df71e2fd2b7a20a8d101729c6e.1362319765.git.jani@nikula.org\r
+>\r
+> Jani Nikula (3):\r
+>   cli: crypto: abstract gpg context creation for clarity\r
+>   cli: mime node: abstract decryption and signature verification\r
+>   cli: conform to same conditional build style as elsewhere in\r
+>     notmuch-show\r
+>\r
+>  crypto.c       |   66 ++++++++++++-----\r
+>  mime-node.c    |  218 ++++++++++++++++++++++++++++++++++++--------------------\r
+>  notmuch-show.c |   46 ++++++------\r
+>  3 files changed, 215 insertions(+), 115 deletions(-)\r
+>\r
+> -- \r
+> 1.7.10.4\r
+>\r
+> _______________________________________________\r
+> notmuch mailing list\r
+> notmuch@notmuchmail.org\r
+> http://notmuchmail.org/mailman/listinfo/notmuch\r