summaryrefslogtreecommitdiff
path: root/alot/commands/envelope.py
diff options
context:
space:
mode:
authorDaniel <quite@hack.org>2012-03-05 18:30:50 +0100
committerDaniel <quite@hack.org>2012-03-05 18:30:50 +0100
commit002bc2ea462047aa5181a88eef600903c9c78a61 (patch)
treed3f4302f796fd7dc942f502abd5a3e83308e03cf /alot/commands/envelope.py
parentb70331f53f131b12306c68c4cff81dfa36cff1cc (diff)
Prefix tmpfile; convenient for automatic change of editor modes
Diffstat (limited to 'alot/commands/envelope.py')
-rw-r--r--alot/commands/envelope.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/alot/commands/envelope.py b/alot/commands/envelope.py
index cc67a5a1..b74b71fe 100644
--- a/alot/commands/envelope.py
+++ b/alot/commands/envelope.py
@@ -246,7 +246,7 @@ class EditCommand(Command):
bodytext = translate(bodytext, ui=ui, dbm=ui.dbman)
#write stuff to tempfile
- tf = tempfile.NamedTemporaryFile(delete=False)
+ tf = tempfile.NamedTemporaryFile(delete=False, prefix='alot.')
content = bodytext
if headertext:
content = '%s%s' % (headertext, content)