Subject: Re: [sup-talk] gpg-options.rb: how to set always_trust

From: Shadowfirebird <[email-masked]>
Date: Mon, 24 Jan 2011 09:15:13 +0000

> But another problem popped up. Now I can't sign any message. It makes no
> difference if gpg-options.rb is there or not. There is also no difference in
> choosing sign or sign and encrypt. There are no messages about that in
> the log even with debugging turned on. Have I found a bug?

I've just upgraded to 0.12.   On reading your post I tried signing a message and sending it to myself' it worked fine.  So I hazard to guess that it might be a problem with your hooks (or rather, with how the new Sup is reading your existing hook code.)  I only have a before-add-message and a mime-view hook set, so that would appear to be the likely difference between you and me.  

Hope that helps.  Maybe you need to post your gpg-related hooks here...

-- 
"It's not just a computer -- it's your ass."
		-- Cal Keegan
_______________________________________________
sup-talk mailing list
[email-masked]
http://rubyforge.org/mailman/listinfo/sup-talk

---

From: Michael Stapelberg <[email-masked]>
Date: Sun, 23 Jan 2011 13:17:41 +0100

Hi Sebastian,

Excerpts from Sebastian Lipp's message of 2011-01-23 09:25:58 +0100:
> Any assistance in putting the right code snipped here would be
> appreciated.
See the wiki at http://sup.rubyforge.org/wiki/wiki.pl?GPG, it has examples for
hooks for sup >= 0.12.

Best regards,
Michael

---

From: Sebastian Lipp <[email-masked]>
Date: Tue, 25 Jan 2011 15:32:56 +0100

Excerpts from Hamish D's message of Mo Jan 24 11:34:28 +0100 2011:
> * your gpg key type, including whether you have a separate sub key for
> signing. If your key is on public keyservers then the key ID could also be
> useful.

A750401F

> * whether you use the gpgkey option in .sup/config.yaml

Yes, I do. I tried to delete this option and moved all my GPG-related
hooks out of sup's reach. The last thing I just tried was pulling again.
Nothing helped.

In my last mail I told that I can't sign. That's not true (anymore). I
can sign but when I choose sign and encrypt there is no signature. Can't
say whether this was a misinformation by me or is related to the latest
pull.

All I can tell is that it worked like a charm since I use sup. It might
be related to the change to GPGME.

-- 
basti
 
Die Zwingburg des Privateigentums wird fallen und auf ihren Trümmer wird
sich der Tempel des Kommunismus erheben.
Alle Festungen des Staates werden kapitulieren müssen, und in herrlicher
Gestalt wird sich zeigen der Genius der Anarchie.
Wer diesen Idealen zuzuschreiten entschlossen ist, der reiche uns die
Hände!
	-- Johann Most
_______________________________________________
sup-talk mailing list
[email-masked]
http://rubyforge.org/mailman/listinfo/sup-talk

---

From: Sebastian Lipp <[email-masked]>
Date: Sun, 23 Jan 2011 23:09:01 +0100

Excerpts from Hamish D's message of So Jan 23 11:47:32 +0100 2011:
> > I've just 'git pull'ed so my always_trust setting for GnuPG isn't
> > working any more. I tried to set it by just putting
> >  {:always_trust => true}
> > into gpg-options.rb but it doesn't work.
> 
> This may be slightly obscure,

I expected it would, but as I said I have no clue about ruby. ;)

> if operation == "encrypt"
>   options.merge({:always_trust => true})
> end
> options

That is exactly what I was looking for. Thanks.

-- 
basti
 
The Web should be like a white sheet of paper: ready to be written on,
with no control over what is written.
	-- Tim Berners-Lee
_______________________________________________
sup-talk mailing list
[email-masked]
http://rubyforge.org/mailman/listinfo/sup-talk

---

From: Sebastian Lipp <[email-masked]>
Date: Sun, 23 Jan 2011 09:25:58 +0100

Hi.

I've just 'git pull'ed so my always_trust setting for GnuPG isn't
working any more. I tried to set it by just putting
  {:always_trust => true}
into gpg-options.rb but it doesn't work. I bet I have to put something
like
  if(operation == encrypt)
    always_trust = 1;
into the file. The Problem is that I have got no clue about Ruby.

-- 
basti
 
Government is a disease that masquerades as its own cure
	-- Robert Lefevre
_______________________________________________
sup-talk mailing list
[email-masked]
http://rubyforge.org/mailman/listinfo/sup-talk

---

From: Hamish <[email-masked]>
Date: Sun, 30 Jan 2011 23:04:58 +0000

> That is exactly what I was looking for. Thanks.

I've discovered that it actually needs to be  

if operation == "encrypt"
  options.merge!({:always_trust => true})
end
options

I've updated the wiki aswell. The difference is using merge! rather than

> the log even with debugging turned on. Have I found a bug?

This bug is now fixed in the next branch (and the gpgme branch). Someone
should hopefully merge this into master soon.

http://rubyforge.org/pipermail/sup-devel/2011-January/000965.html

Hamish Downer

---

From: Hamish D <[email-masked]>
Date: Mon, 24 Jan 2011 10:34:28 +0000

Interesting ... it may well be a bug. As well as your hooks, could you let
me know:

I'll look into it in the next few days. I might even try constructing a gpg
test suite for sup ...

Hamish Downer
On 24 Jan 2011 09:15, "Shadowfirebird" <[email-masked]> wrote:
_______________________________________________
sup-talk mailing list
[email-masked]
http://rubyforge.org/mailman/listinfo/sup-talk