Notmuch not able to decrypt some GPG multipart/encrypted emails - Was: Re: How to decrypt multipart/encrypted parts in notmuch-emacs

2012-04-11 Thread Olivier Berger
Hi.

Daniel Kahn Gillmor
 writes:

> On 04/11/2012 12:58 PM, Olivier Berger wrote:
>> 
>> Dunno what happens. Anyone else ?
>
> Are you running gpg-agent?
>

I wasn't, but was using gnome's keyring daemon instead.

I have added 'use_agent' back in my ~/.gnupg/gpg.conf, rebooted and can
now see gpg-agent running, and all seems much better.

> what do you get if you do:
>
>  gpg-connect-agent /bye
>
> (please include the return code)?
>

Works now, with $? == 0.

> if you are running on a debian or debian-derived system, do you have the
> gnupg-agent package installed?
>
>   --dkg
>

Thanks for these hints : notmuch show --decrypt works now.

Thanks for your help.

Best regards,

P.S.: I have a somewhat special gpg setup, cause I'm wrapping it with a
script which tests its options and eventually add necessary bits to
access a crypted FS on a usb key... some that may have created some of a
mess in my GPG agent config :-/
-- 
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)



Notmuch not able to decrypt some GPG multipart/encrypted emails - Was: Re: How to decrypt multipart/encrypted parts in notmuch-emacs

2012-04-11 Thread Olivier Berger

Some more details :

Olivier Berger 
writes:

> Hi.
>
> Is there a way to decrypt multipart/encrypted messages in notmuch-emacs
> ?
>
> I can only get a purple "Decryption error" message...
>
> The mail looks like :
>
> MIME-Version: 1.0
> Content-Type: multipart/encrypted; boundary="=-=-=";
>   protocol="application/pgp-encrypted"
>
> --=-=-=
> Content-Type: application/pgp-encrypted
>
> Version: 1
>
> --=-=-=
> Content-Type: application/octet-stream
>
>
> --=-=-=--
>
> Note that gnus decrypts it without any problem.
>

I traced a bit what could be wrong and found out that it's not in the
emacs part :

$ notmuch show --decrypt "subject:whatever"

[...]

header{
olivier.berger at it-sudparis.eu (20 mins. ago) (encrypted)
Subject: whatever
From: olivier.ber...@it-sudparis.eu
To: whomever
Date: Wed, 11 Apr 2012 18:32:23 +0200

header}

body{
Failed to decrypt part: Canceled.

part{ ID: 1, Content-type: multipart/encrypted

part{ ID: 2, Filename: msg.asc, Content-type: application/pgp-encrypted
Non-text part: application/pgp-encrypted

part}

part{ ID: 3, Content-type: application/octet-stream
Non-text part: application/octet-stream

part}

part}

body}

message}


Dunno what happens. Anyone else ?

Thanks in advance.

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)



Notmuch not able to decrypt some GPG multipart/encrypted emails - Was: Re: How to decrypt multipart/encrypted parts in notmuch-emacs

2012-04-11 Thread Daniel Kahn Gillmor
On 04/11/2012 12:58 PM, Olivier Berger wrote:
> 
> Dunno what happens. Anyone else ?

Are you running gpg-agent?

what do you get if you do:

 gpg-connect-agent /bye

(please include the return code)?

if you are running on a debian or debian-derived system, do you have the
gnupg-agent package installed?

--dkg

-- next part --
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 1030 bytes
Desc: OpenPGP digital signature
URL: 



Notmuch not able to decrypt some GPG multipart/encrypted emails - Was: Re: How to decrypt multipart/encrypted parts in notmuch-emacs

2012-04-11 Thread Olivier Berger

Some more details :

Olivier Berger olivier.ber...@it-sudparis.eu
writes:

 Hi.

 Is there a way to decrypt multipart/encrypted messages in notmuch-emacs
 ?

 I can only get a purple Decryption error message...

 The mail looks like :

 MIME-Version: 1.0
 Content-Type: multipart/encrypted; boundary==-=-=;
   protocol=application/pgp-encrypted

 --=-=-=
 Content-Type: application/pgp-encrypted

 Version: 1

 --=-=-=
 Content-Type: application/octet-stream


 --=-=-=--

 Note that gnus decrypts it without any problem.


I traced a bit what could be wrong and found out that it's not in the
emacs part :

$ notmuch show --decrypt subject:whatever

[...]

header{
olivier.ber...@it-sudparis.eu (20 mins. ago) (encrypted)
Subject: whatever
From: olivier.ber...@it-sudparis.eu
To: whomever
Date: Wed, 11 Apr 2012 18:32:23 +0200

header}

body{
Failed to decrypt part: Canceled.

part{ ID: 1, Content-type: multipart/encrypted

part{ ID: 2, Filename: msg.asc, Content-type: application/pgp-encrypted
Non-text part: application/pgp-encrypted

part}

part{ ID: 3, Content-type: application/octet-stream
Non-text part: application/octet-stream

part}

part}

body}

message}


Dunno what happens. Anyone else ?

Thanks in advance.

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)

___
notmuch mailing list
notmuch@notmuchmail.org
http://notmuchmail.org/mailman/listinfo/notmuch


Re: Notmuch not able to decrypt some GPG multipart/encrypted emails - Was: Re: How to decrypt multipart/encrypted parts in notmuch-emacs

2012-04-11 Thread Daniel Kahn Gillmor
On 04/11/2012 12:58 PM, Olivier Berger wrote:
 
 Dunno what happens. Anyone else ?

Are you running gpg-agent?

what do you get if you do:

 gpg-connect-agent /bye

(please include the return code)?

if you are running on a debian or debian-derived system, do you have the
gnupg-agent package installed?

--dkg



signature.asc
Description: OpenPGP digital signature
___
notmuch mailing list
notmuch@notmuchmail.org
http://notmuchmail.org/mailman/listinfo/notmuch


Re: Notmuch not able to decrypt some GPG multipart/encrypted emails - Was: Re: How to decrypt multipart/encrypted parts in notmuch-emacs

2012-04-11 Thread Olivier Berger
Hi.

Daniel Kahn Gillmor
d...@fifthhorseman.net writes:

 On 04/11/2012 12:58 PM, Olivier Berger wrote:
 
 Dunno what happens. Anyone else ?

 Are you running gpg-agent?


I wasn't, but was using gnome's keyring daemon instead.

I have added 'use_agent' back in my ~/.gnupg/gpg.conf, rebooted and can
now see gpg-agent running, and all seems much better.

 what do you get if you do:

  gpg-connect-agent /bye

 (please include the return code)?


Works now, with $? == 0.

 if you are running on a debian or debian-derived system, do you have the
 gnupg-agent package installed?

   --dkg


Thanks for these hints : notmuch show --decrypt works now.

Thanks for your help.

Best regards,

P.S.: I have a somewhat special gpg setup, cause I'm wrapping it with a
script which tests its options and eventually add necessary bits to
access a crypted FS on a usb key... some that may have created some of a
mess in my GPG agent config :-/
-- 
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)

___
notmuch mailing list
notmuch@notmuchmail.org
http://notmuchmail.org/mailman/listinfo/notmuch