diff options
author | Nick Hu <me@nickhu.co.uk> | 2019-04-10 11:00:38 +0100 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2019-05-11 17:29:22 +0100 |
commit | 41f12577dadee35954f9e223ced0c51369d56394 (patch) | |
tree | fde9198c47660d8f4cce8771bc4d9eff7913fc93 /alot | |
parent | d0297605c0ec1c6b65f541d0fd5b69ac5a0f4ded (diff) |
expose subject and to headers to forward_prefix hook
Diffstat (limited to 'alot')
-rw-r--r-- | alot/commands/thread.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/alot/commands/thread.py b/alot/commands/thread.py index 3fbe8148..e3c15b2e 100644 --- a/alot/commands/thread.py +++ b/alot/commands/thread.py @@ -139,7 +139,8 @@ class ReplyCommand(Command): timestamp = self.message.get_date() qf = settings.get_hook('reply_prefix') if qf: - quotestring = qf(name, address, timestamp, ui=ui, dbm=ui.dbman) + quotestring = qf(name, address, timestamp, + message=mail, ui=ui, dbm=ui.dbman) else: quotestring = 'Quoting %s (%s)\n' % (name or address, timestamp) mailcontent = quotestring @@ -346,7 +347,8 @@ class ForwardCommand(Command): timestamp = self.message.get_date() qf = settings.get_hook('forward_prefix') if qf: - quote = qf(name, address, timestamp, ui=ui, dbm=ui.dbman) + quote = qf(name, address, timestamp, + message=mail, ui=ui, dbm=ui.dbman) else: quote = 'Forwarded message from %s (%s):\n' % ( name or address, timestamp) |