pazz/alot — pull request #438 by mstap (2012-04-15 17:45:04+00:00)
Title: Implement signing outgoing messages (PoC)

So, here’s a pull request for the work I’ve been doing on GPG signatures so far.

The code works (it signs messages with and without attachments in such a way that at least claws-mail can properly verify the signature), but might need a few small changes. Feel free to comment on it.

What’s currently not done at all is any kind of UI for selecting whether to sign, encrypt or both a given envelope. The code just signs all outgoing messages at the moment.

The passphrase issue you’ve mentioned before (integrating a passphrase callback with twisted/urwid) was solved by using a thread for the GPG sign (so it doesn’t block the main loop) and calling ui.prompt from within that thread in a blocking fashion.