Re: How to decrypt multipart/encrypted parts in notmuch-emacs
authorJameson Graef Rollins <jrollins@finestructure.net>
Wed, 11 Apr 2012 16:41:05 +0000 (09:41 +1700)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:46:14 +0000 (09:46 -0800)
6f/9e1556eed6945e1f7c454a0d2be6c8e494bc7d [new file with mode: 0644]

diff --git a/6f/9e1556eed6945e1f7c454a0d2be6c8e494bc7d b/6f/9e1556eed6945e1f7c454a0d2be6c8e494bc7d
new file mode 100644 (file)
index 0000000..0b0cb2e
--- /dev/null
@@ -0,0 +1,111 @@
+Return-Path: <jrollins@finestructure.net>\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 B2539431FAF\r
+       for <notmuch@notmuchmail.org>; Wed, 11 Apr 2012 09:41:18 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -2.29\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-2.29 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_MED=-2.3, T_MIME_NO_TEXT=0.01] 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 VcyOmQvSR8Dc for <notmuch@notmuchmail.org>;\r
+       Wed, 11 Apr 2012 09:41:17 -0700 (PDT)\r
+Received: from outgoing-mail.its.caltech.edu (outgoing-mail.its.caltech.edu\r
+       [131.215.239.19])\r
+       by olra.theworths.org (Postfix) with ESMTP id 126DE431FAE\r
+       for <notmuch@notmuchmail.org>; Wed, 11 Apr 2012 09:41:17 -0700 (PDT)\r
+Received: from fire-doxen.imss.caltech.edu (localhost [127.0.0.1])\r
+       by fire-doxen-postvirus (Postfix) with ESMTP id 5BD6532805C;\r
+       Wed, 11 Apr 2012 09:41:16 -0700 (PDT)\r
+X-Spam-Scanned: at Caltech-IMSS on fire-doxen by amavisd-new\r
+Received: from finestructure.net (adsl-76-240-184-246.dsl.irvnca.sbcglobal.net\r
+       [76.240.184.246]) (Authenticated sender: jrollins)\r
+       by fire-doxen-submit (Postfix) with ESMTP id F32D932802D;\r
+       Wed, 11 Apr 2012 09:41:08 -0700 (PDT)\r
+Received: by finestructure.net (Postfix, from userid 1000)\r
+       id 208D3183; Wed, 11 Apr 2012 09:41:08 -0700 (PDT)\r
+From: Jameson Graef Rollins <jrollins@finestructure.net>\r
+To: Olivier Berger <olivier.berger@it-sudparis.eu>, notmuch@notmuchmail.org\r
+Subject: Re: How to decrypt multipart/encrypted parts in notmuch-emacs\r
+In-Reply-To: <874nsqe28a.fsf@inf-8657.int-evry.fr>\r
+References: <874nsqe28a.fsf@inf-8657.int-evry.fr>\r
+User-Agent: Notmuch/0.12+108~g7bdb40c (http://notmuchmail.org) Emacs/23.4.1\r
+       (x86_64-pc-linux-gnu)\r
+Date: Wed, 11 Apr 2012 09:41:05 -0700\r
+Message-ID: <87vcl6gr1a.fsf@servo.finestructure.net>\r
+MIME-Version: 1.0\r
+Content-Type: multipart/signed; boundary="=-=-=";\r
+       micalg=pgp-sha256; protocol="application/pgp-signature"\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: Wed, 11 Apr 2012 16:41:18 -0000\r
+\r
+--=-=-=\r
+\r
+On Wed, Apr 11 2012, Olivier Berger <olivier.berger@it-sudparis.eu> wrote:\r
+> Is there a way to decrypt multipart/encrypted messages in notmuch-emacs\r
+\r
+Hi, Olivier.  Yes, it is possible.\r
+\r
+> I can only get a purple "Decryption error" message...\r
+\r
+The fact that you're getting this messages means that notmuch is\r
+attempting to decrypt the message, but there was a decryption problem.\r
+\r
+A typical problem is that gpg-agent is not running.  Notmuch uses gnupg\r
+to decrypt, but it requires that gpg-agent be running to get the\r
+passphrase from the user.  Do you have gpg-agent running?\r
+\r
+> The mail looks like :\r
+\r
+The format of the multipart/encrypted looks fine, so I see no problems\r
+there (assuming the encryption was done properly).\r
+\r
+You might also try decrypting the message on the command line, as that\r
+will take any emacs issues out of the loop:\r
+\r
+notmuch show --decrypt id:$msgid\r
+\r
+It might help to redirect stdout to /dev/null to make it easier to see\r
+any gnupg error messages\r
+\r
+I hope that helps.  Let us know if you still can't figure it out, or if\r
+you have other questions.\r
+\r
+jamie.\r
+\r
+--=-=-=\r
+Content-Type: application/pgp-signature\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v1.4.12 (GNU/Linux)\r
+\r
+iQIcBAEBCAAGBQJPhbQhAAoJEO00zqvie6q8QxcP/0hgN4UwITZVMJKtwRMT4NJL\r
+UxJkFQIpBKdyN9m5932cMw8IOMFjj2VzfAJSP8UrUwOpqBItwrG8XqItY3miUj4K\r
+R5Zm53+zQFZkBg7NsgobB5Ss57weRrB1hfncnYIPE+EPB724I++NRijHP9zS2AAL\r
+wkBQkiembna/VV9rb4p8OSrBm5LR3ptir6BrUShpWnCOKdxobvZUIApfMvaez40e\r
+tG2toY1qooYt1UnLx2QUAKEPl3Otey4jJoIhaJhPO23LbWB0gaXYV326y0RWcvBn\r
+06qjJR1qx5aJkrIcSGiyxy7hP4ezb5pisDEJvZ8IX9KDUBjIOME5IHX+ah3LpcgS\r
+qbIEKQ8d5LLSHrdsX7VGpszWYv9CEYSCq3FBzcYUytAqZ4PnBUmCRAO+fcrTr/sC\r
+ZC15TCV3r7pVObVkN+gHoO5Pdd0rWwc4ORuirV4cxw/ahlVFuIP2ZygoWb6JsWSz\r
+e+4hUMVZ4JMDw2URgNx4n4q0p05/EY80fJ+mqJF3dnLVPqoJcHEZsj3iyngINWRr\r
+Iy8ksSBfp/RxaW/9ZS1Bqsx6l6u6qBM4LOvoc1w3/ewJo0WLDuPtfusLRl4yjtfi\r
+EV9U/ST97cHXRZrlWCJC2vYPBLY+nWPX/YBLA87WAXrQqdHX3AVfoSxLsvAuCoQt\r
+kx4gKvDltNoCoySjZBTc\r
+=XPqW\r
+-----END PGP SIGNATURE-----\r
+--=-=-=--\r