diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2017-09-06 10:57:45 -0700 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2017-09-06 14:30:13 -0700 |
commit | 7ce3f07f677372e958995e858a3365af918694f1 (patch) | |
tree | cfb60c7521d20dd8604e6f86501e8fe24d786a68 /alot | |
parent | d4ea14c7f58e2a7c1981f15aec513517d9268918 (diff) |
db/message: Try to use the 'Sender' header if the 'From' header is null
This makes drafts display correctly.
Diffstat (limited to 'alot')
-rw-r--r-- | alot/db/message.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/alot/db/message.py b/alot/db/message.py index 72d87f12..731b4e1f 100644 --- a/alot/db/message.py +++ b/alot/db/message.py @@ -51,6 +51,8 @@ class Message(object): try: sender = decode_header(msg.get_header('From')) + if not sender: + sender = decode_header(msg.get_header('Sender')) except NullPointerError: sender = None if sender: |