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