summaryrefslogtreecommitdiff
path: root/alot
diff options
context:
space:
mode:
authorPatrick Totzke <patricktotzke@gmail.com>2011-10-15 10:54:08 +0100
committerPatrick Totzke <patricktotzke@gmail.com>2011-10-15 10:56:18 +0100
commit422638d7bab7c80ccc7bb2bf80817d7ed5e00248 (patch)
treefb3cc5b1733b24620e5ee1d60b22e74116c76a1a /alot
parentc4f6b77f34357db44c91ee1492bab1ead62dcd0f (diff)
decorate envelope:attach
Diffstat (limited to 'alot')
-rw-r--r--alot/commands/thread.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/alot/commands/thread.py b/alot/commands/thread.py
index b70f9720..e0369807 100644
--- a/alot/commands/thread.py
+++ b/alot/commands/thread.py
@@ -127,19 +127,20 @@ class ReplyCommand(Command):
return ', '.join(new_value)
-@registerCommand(MODE, 'forward', {})
+@registerCommand(MODE, 'forward', arguments=[
+ (['--attach'], {'action':'store_true', 'help':'attach original mail'})]
+)
class ForwardCommand(Command):
- def __init__(self, message=None, inline=False, **kwargs):
+ def __init__(self, message=None, attach=True, **kwargs):
"""
:param message: the original message to forward. If None, the currently
selected one is used
:type message: `alot.message.Message`
- :param inline: Copy originals body text instead of attaching the whole
- mail
- :type inline: boolean
+ :param attach: attach original mail instead of inline quoting its body
+ :type attach: boolean
"""
self.message = message
- self.inline = inline
+ self.inline = not attach
Command.__init__(self, **kwargs)
def apply(self, ui):