diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2013-05-24 17:50:24 +0200 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2013-06-16 21:16:57 +0100 |
commit | 5be498b1b22ba567fe6e62eb4a7d5a116f543952 (patch) | |
tree | a6fd15b02971673f1b8a1fb2560dfa876bcd16c4 /alot/widgets/thread.py | |
parent | c39e7684769fa31ddd7d0200d5baa7e25476275d (diff) |
Verify OpenPGP signatures and display the result
Verify OpenPGP signatures as specified in RFC 3156. Display the result
in the header list above the message.
Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
Diffstat (limited to 'alot/widgets/thread.py')
-rw-r--r-- | alot/widgets/thread.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/alot/widgets/thread.py b/alot/widgets/thread.py index 17b43883..32229d2e 100644 --- a/alot/widgets/thread.py +++ b/alot/widgets/thread.py @@ -8,7 +8,7 @@ import urwid import logging from alot.settings import settings -from alot.db.utils import decode_header +from alot.db.utils import decode_header, X_SIGNATURE_MESSAGE_HEADER from alot.helper import tag_cmp from alot.widgets.globals import TagWidget from alot.widgets.globals import AttachmentWidget @@ -303,6 +303,10 @@ class MessageTree(CollapsibleTree): values.append(t) lines.append((key, ', '.join(values))) + # OpenPGP pseudo headers + if mail[X_SIGNATURE_MESSAGE_HEADER]: + lines.append(('PGP-Signature', mail[X_SIGNATURE_MESSAGE_HEADER])) + key_att = settings.get_theming_attribute('thread', 'header_key') value_att = settings.get_theming_attribute('thread', 'header_value') gaps_att = settings.get_theming_attribute('thread', 'header') |