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 675E3431FAF for ; Wed, 11 Apr 2012 13:55:09 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] 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 NB5EYIzrxlqM for ; Wed, 11 Apr 2012 13:55:08 -0700 (PDT) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id BE404431FAE for ; Wed, 11 Apr 2012 13:55:08 -0700 (PDT) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SI4ZD-0007A4-5J for notmuch@notmuchmail.org; Wed, 11 Apr 2012 22:55:03 +0200 Received: from mag77-1-82-238-14-130.fbx.proxad.net ([82.238.14.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 11 Apr 2012 22:55:03 +0200 Received: from olivier.berger by mag77-1-82-238-14-130.fbx.proxad.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 11 Apr 2012 22:55:03 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: notmuch@notmuchmail.org From: Olivier Berger Subject: Re: How to decrypt multipart/encrypted parts in notmuch-emacs Date: Wed, 11 Apr 2012 22:50:47 +0200 Lines: 55 Message-ID: <87iph6ngbc.fsf@inf-8657.int-evry.fr> References: <874nsqe28a.fsf@inf-8657.int-evry.fr> <87vcl6gr1a.fsf@servo.finestructure.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: mag77-1-82-238-14-130.fbx.proxad.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) Cancel-Lock: sha1:SYVsjeIBzDapSRumnWTmiszNa6M= 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 20:55:09 -0000 Hi. Jameson Graef Rollins writes: > 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? > Thanks for this suggestion. As I've responded to Daniel Kahn Gillmor in another message, it seems that I may have messed with my config, and gpg-agent may not have worked properly. That's now fixed, I think. See below. >> 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 > That works now, but only on the command-line. Still, in notmuch-emacs, I can still see the purple "Decryption error" message :-/ Weird. Any other ideas ? Best regards, -- Olivier BERGER http://www-public.it-sudparis.eu/~berger_o/ - OpenPGP-Id: 2048R/5819D7E8 Ingenieur Recherche - Dept INF Institut Mines-Telecom, Telecom SudParis, Evry (France)