Skip Menu |

This queue is for tickets about the Mail-GnuPG CPAN distribution.

Report information
The Basics
Id: 73036
Status: resolved
Priority: 0/
Queue: Mail-GnuPG

People
Owner: Nobody in particular
Requestors: PUCK [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.16
Fixed in: (no value)



Subject: Add always-trust support to Mail::GnuPG.
Hi, I need to be able to send out some encrypted emails using peoples GPG public keys that have been provided in a manual method. And I don't want to have to setup specific key for automatically creating trust signatures which might leak out into the wild. Fortunately gpg has a solution to this called always-trust. And GnuPG::Interface exposes this. The attached patch makes Mail::GnuPG expose it as well. It would be very handy to have this rolled into Mail::GnuPG. Cheers!
Subject: mail-gnupg-always_trust.patch
--- libmail-gnupg-perl-0.16.orig/lib/Mail/GnuPG.pm 2011-12-06 21:30:00.000000000 +1300 +++ libmail-gnupg-perl-0.16/lib/Mail/GnuPG.pm 2011-12-06 21:33:11.000000000 +1300 @@ -45,6 +45,7 @@ keydir => gpg configuration/key directory passphrase => primary key password use_agent => use gpg-agent if non-zero + always_trust => always trust a public key # FIXME: we need more things here, maybe primary key id. @@ -78,6 +79,10 @@ # ( defined $self->{passphrase} ? # ( passphrase => $self->{passphrase} ) : () ), ); + + if (defined $self->{always_trust}) { + $gnupg->options->always_trust($self->{always_trust}) + } $gnupg->call( $self->{gpg_path} ) if defined $self->{gpg_path}; }
Subject: Re: [rt.cpan.org #73036] Add always-trust support to Mail::GnuPG.
Date: Wed, 07 Dec 2011 23:20:45 -0800
To: bug-Mail-GnuPG [...] rt.cpan.org
From: Robert Spier <rspier [...] cpan.org>
I've applied this to my local git repo, and will try and get it pulled into the BPS repo. One of the BPS folks should do the cpan release. -R
Subject: Re: [rt.cpan.org #73036] Add always-trust support to Mail::GnuPG.
Date: Thu, 08 Dec 2011 08:43:01 -0400
To: bug-Mail-GnuPG [...] rt.cpan.org
From: David Bremner <david [...] tethera.net>
On Thu, 8 Dec 2011 02:20:56 -0500, "Robert Spier via RT" <bug-Mail-GnuPG@rt.cpan.org> wrote: Show quoted text
> Queue: Mail-GnuPG > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=73036 > > > > I've applied this to my local git repo, and will try and get it pulled > into the BPS repo. One of the BPS folks should do the cpan release.
Hi Robert; I'm not sure what BPS is in this context, but I could do a release. In any case the git repo corresponding to the latest CPAN release is at git://pivot.cs.unb.ca/mail-gnupg I have cherry-picked the patch from your github repo, it just needs an updated Changes I guess. d
CC: undisclosed-recipients:;
Subject: Re: [rt.cpan.org #73036] Add always-trust support to Mail::GnuPG.
Date: Fri, 09 Dec 2011 22:06:05 -0800
To: "david via RT" <bug-Mail-GnuPG [...] rt.cpan.org>
From: Robert Spier <rspier [...] pobox.com>
Show quoted text
> I'm not sure what BPS is in this context, but I could do a release.
It's BestPractical, they used to maintain Mail::GnuPG for a while. I had their repository as the upstream one in my local client. git://github.com/bestpractical/mail-gnupg.git But what actually happened here is that I totally forgot I handed over maintenance to you last year. :) Apologies for stepping on your toes. -R
Subject: Re: [rt.cpan.org #73036] Add always-trust support to Mail::GnuPG.
Date: Sat, 10 Dec 2011 08:01:40 -0400
To: bug-Mail-GnuPG [...] rt.cpan.org
From: David Bremner <david [...] tethera.net>
On Sat, 10 Dec 2011 01:06:16 -0500, "rspier@pobox.com via RT" <bug-Mail-GnuPG@rt.cpan.org> wrote: Show quoted text
> But what actually happened here is that I totally forgot I handed over > maintenance to you last year. :) > > Apologies for stepping on your toes.
No trouble! So I guess I'll go ahead and do a release in the next few days. David
The patch is applied in CPAN release 0.17