summaryrefslogtreecommitdiff
path: root/alot
diff options
context:
space:
mode:
authorJakob <jakob@pipefour.org>2012-04-04 12:33:17 -0700
committerJakob <jakob@pipefour.org>2012-04-04 12:33:17 -0700
commite7b7775aedd99ec1f83ed1f1966ba4e00794b346 (patch)
tree63c95184bd06ba799db932c3f7920354259d598e /alot
parent2cb5996bc6cea048b981ea26bdfe90d8ae7dcd60 (diff)
Fix invocation of pre_edit_translate hook.
Bodytext isn't written to the tempfile, content is. This fixes the fact that pre_edit_translate hooks currently do nothing.
Diffstat (limited to 'alot')
-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 21331ca8..c906bef4 100644
--- a/alot/commands/envelope.py
+++ b/alot/commands/envelope.py
@@ -255,7 +255,7 @@ class EditCommand(Command):
# call pre-edit translate hook
translate = settings.get_hook('pre_edit_translate')
if translate:
- bodytext = translate(bodytext, ui=ui, dbm=ui.dbman)
+ content = translate(content, ui=ui, dbm=ui.dbman)
#write stuff to tempfile
tf = tempfile.NamedTemporaryFile(delete=False, prefix='alot.')