summaryrefslogtreecommitdiff
path: root/alot/commands/thread.py
diff options
context:
space:
mode:
Diffstat (limited to 'alot/commands/thread.py')
-rw-r--r--alot/commands/thread.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/alot/commands/thread.py b/alot/commands/thread.py
index 767b5eb9..410d31e7 100644
--- a/alot/commands/thread.py
+++ b/alot/commands/thread.py
@@ -107,7 +107,7 @@ class ReplyCommand(Command):
if qf:
quotestring = qf(name, address, timestamp, ui=ui, dbm=ui.dbman)
else:
- quotestring = 'Quoting %s (%s)\n' % (name, timestamp)
+ quotestring = 'Quoting %s (%s)\n' % (name or address, timestamp)
mailcontent = quotestring
for line in self.message.accumulate_body().splitlines():
mailcontent += '> ' + line + '\n'
@@ -212,7 +212,7 @@ class ForwardCommand(Command):
if qf:
quote = qf(name, address, timestamp, ui=ui, dbm=ui.dbman)
else:
- quote = 'Forwarded message from %s (%s):\n' % (name, timestamp)
+ quote = 'Forwarded message from %s (%s):\n' % (name or address, timestamp)
mailcontent = quote
for line in self.message.accumulate_body().splitlines():
mailcontent += '>' + line + '\n'