[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



Excerpts from Sebastian Lipp's message of Sun Jan 23 22:09:01 +0000 2011:
> Excerpts from Hamish D's message of So Jan 23 11:47:32 +0100 2011:
> > if operation == "encrypt"
> >   options.merge({:always_trust => true})
> > end
> > options
> 
> 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
merge - I discovered this while tracking down your other issue:

> 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?

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
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk