diff options
author | Patrick Totzke <patricktotzke@gmail.com> | 2012-03-09 11:48:14 +0000 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2012-03-09 11:48:14 +0000 |
commit | 705800298705008104a0bc151d33a89d12bdd25a (patch) | |
tree | 27c7c3697d72445585cb24ec69208546fbdeaabd | |
parent | 37dc101d73b15ba0d9773b9e1d5e2be42d75f357 (diff) |
fix: issue with forwarded messages
issue #400
-rw-r--r-- | alot/commands/thread.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/alot/commands/thread.py b/alot/commands/thread.py index 08f50733..c9388f7b 100644 --- a/alot/commands/thread.py +++ b/alot/commands/thread.py @@ -19,6 +19,8 @@ from alot.message import encode_header from alot.message import extract_headers from alot.message import extract_body from alot.message import Envelope +from alot.message import Attachment + from alot.db import DatabaseROError from alot.settings import settings @@ -219,7 +221,7 @@ class ForwardCommand(Command): # attach original msg mail.set_default_type('message/rfc822') mail['Content-Disposition'] = 'attachment' - envelope.attachments.append(mail) + envelope.attach(Attachment(mail)) # copy subject subject = decode_header(mail.get('Subject', '')) |