Re: RFS: sup-mail 0.12-1+git20120407.aaa852f-1
Hi!
On Thu, May 24, 2012 at 10:43 AM, Per Andersson <avtobiff@gmail.com> wrote:
> Hi!
>
> On Wed, May 23, 2012 at 1:35 PM, Cédric Boutillier
> <cedric.boutillier@gmail.com> wrote:
>>
>> I encountered two issues with sup-mail with respect to GPG support:
>> - Although I could send signed emails, I could not send encrypted /
>> encrypted and signed emails and got instead the following errors
>> (crypt and sign)
>> Problem sending mail: Exception in GPGME call: Unusable public key
>> or (crypt only)
>> Problem sending mail: Exception in GPGME call: General error
The encryption issue seems to be an issue of trust with GPG. AFAICS you
need to trust the recipients key.
When I tested to send encrypted emails it works if I trust the recipients key.
(Both for sign+encrypt and encrypt only.)
Can you please try to either edit trust for the recipients key and check if
that works. You can read about it on gnupg-users [0,1].
[0] http://lists.gnupg.org/pipermail/gnupg-users/2001-October/010589.html
[1] http://www.gossamer-threads.com/lists/gnupg/users/36402
>> - Trying to expand a signature in the thread view mode yields a crash
>> with the following trace:
>>
>> --- NoMethodError from thread: main
>> private method `chomp' called for nil:NilClass
>> /usr/lib/ruby/vendor_ruby/sup/modes/thread-view-mode.rb:849:in `maybe_wrap_text'
>> /usr/lib/ruby/vendor_ruby/sup/modes/thread-view-mode.rb:849:in `map'
>> /usr/lib/ruby/vendor_ruby/sup/modes/thread-view-mode.rb:849:in `maybe_wrap_text'
>> /usr/lib/ruby/vendor_ruby/sup/modes/thread-view-mode.rb:876:in `chunk_to_lines'
>> /usr/lib/ruby/vendor_ruby/sup/modes/thread-view-mode.rb:752:in `regen_text'
>> /usr/lib/ruby/vendor_ruby/sup/modes/thread-view-mode.rb:741:in `each'
>> /usr/lib/ruby/vendor_ruby/sup/modes/thread-view-mode.rb:741:in `regen_text'
>> /usr/lib/ruby/vendor_ruby/sup/thread.rb:81:in `each'
>> /usr/lib/ruby/vendor_ruby/sup/thread.rb:174:in `each_with_stuff'
>> /usr/lib/ruby/vendor_ruby/sup/thread.rb:78:in `each'
>> /usr/lib/ruby/vendor_ruby/sup/thread.rb:75:in `each'
>> /usr/lib/ruby/vendor_ruby/sup/modes/thread-view-mode.rb:710:in `regen_text'
>> /usr/lib/ruby/vendor_ruby/sup/modes/thread-view-mode.rb:696:in `update'
>> /usr/lib/ruby/vendor_ruby/sup/modes/thread-view-mode.rb:339:in `activate_chunk'
>> /usr/lib/ruby/vendor_ruby/sup/mode.rb:59:in `send'
>> /usr/lib/ruby/vendor_ruby/sup/mode.rb:59:in `handle_input'
>> /usr/lib/ruby/vendor_ruby/sup/buffer.rb:278:in `handle_input'
>> /usr/bin/sup-mail:271
Yeah I also get this. I'll dig into it.
>> - I didn't find either how to select the GPG key used (sup-mail doesn't
>> seem to use the default one, but maybe the first found...
>
> You can put this in the $HOME/.sup/config.yaml like so
>
> ---
> :accounts:
> :default:
> :gpgkey: 79F492F8
>
>
> It is sort of documented on the sup wiki [0]
>
> [0] http://sup.rubyforge.org/wiki/wiki.pl?GPG
>
> This should ideally be documented somewhere that ships with
> the package. I don't really have the energy to create a man page
> for the entire config.yaml. Suggestions? (Only documenting
> some parts and stating that it is not complete and mention the
> sup wiki and other documentation?)
Did you mean for the recipient here or for yourself? I assumed you
meant which key you wanted to use for signing and encryption and
not for the recipient.
Best,
Per
Reply to: