diff options
author | Patrick Totzke <patricktotzke@gmail.com> | 2012-01-03 16:51:42 +0000 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2012-01-03 16:51:42 +0000 |
commit | 696761bcf4e8a42acf4107ca9b58a9edc9c5b594 (patch) | |
tree | 3e9d3b83c4fe29ed45f0fa41e0764b986e7462ed /alot/commands/envelope.py | |
parent | cf73fc79b8af004846b6186972ea957712e8a762 (diff) |
use envelope.attach in AttachCommand
this fixes an issue with email parts showing up
in envelope.attachments instead of Attachment objects
because the new envelope.attach method wasnt used before.
Diffstat (limited to 'alot/commands/envelope.py')
-rw-r--r-- | alot/commands/envelope.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/alot/commands/envelope.py b/alot/commands/envelope.py index ab6b9d03..38f39f2a 100644 --- a/alot/commands/envelope.py +++ b/alot/commands/envelope.py @@ -48,7 +48,7 @@ class AttachCommand(Command): logging.info("attaching: %s" % files) for path in files: - envelope.attachments.append(helper.mimewrap(path)) + envelope.attach(path) ui.current_buffer.rebuild() |