summaryrefslogtreecommitdiff
path: root/alot
diff options
context:
space:
mode:
authorGonéri Le Bouder <goneri.lebouder@enovance.com>2013-11-12 13:34:38 +0100
committerGonéri Le Bouder <goneri.lebouder@enovance.com>2013-11-12 13:40:37 +0100
commit7574b46f147ec0633e1eaf189b46e0f3d666b734 (patch)
treea45fe5eca979bb1c317d7ad3c1c34856036e78b5 /alot
parent202e55aadcbdb352d6921863e6bdeed7eb5ba882 (diff)
envelope: add a .eml suffix to the temp mail
Add a .eml extension to let $EDITOR known the file as a mail.
Diffstat (limited to 'alot')
-rw-r--r--alot/commands/envelope.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/alot/commands/envelope.py b/alot/commands/envelope.py
index c96fb887..b67231b7 100644
--- a/alot/commands/envelope.py
+++ b/alot/commands/envelope.py
@@ -375,7 +375,8 @@ class EditCommand(Command):
if self.envelope.tmpfile:
old_tmpfile = self.envelope.tmpfile
self.envelope.tmpfile = tempfile.NamedTemporaryFile(delete=False,
- prefix='alot.')
+ prefix='alot.',
+ suffix='.eml')
self.envelope.tmpfile.write(content.encode('utf-8'))
self.envelope.tmpfile.flush()
self.envelope.tmpfile.close()