From e7b7775aedd99ec1f83ed1f1966ba4e00794b346 Mon Sep 17 00:00:00 2001 From: Jakob Date: Wed, 4 Apr 2012 12:33:17 -0700 Subject: 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. --- alot/commands/envelope.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'alot') 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.') -- cgit v1.2.3