diff options
author | Patrick Totzke <patricktotzke@gmail.com> | 2011-12-30 14:29:37 +0000 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2011-12-30 14:29:37 +0000 |
commit | 22a01cff6c4ff23d68ce589ba19e660192034ecb (patch) | |
tree | 0abe4f442bdf0738e4c69b67c6c17b3b838476d8 /alot/commands/envelope.py | |
parent | 4b679a5e18a8f193d402e1e7360cf5090557187e (diff) |
move signature adding to ComposeCommand
this also implements the feature that
uses the 'signature_as_attachment' account option:
if set to False, the signature file will be appended
to the body text (if its mimetype is text).
closes #173
Diffstat (limited to 'alot/commands/envelope.py')
-rw-r--r-- | alot/commands/envelope.py | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/alot/commands/envelope.py b/alot/commands/envelope.py index e35ce7c0..ab6b9d03 100644 --- a/alot/commands/envelope.py +++ b/alot/commands/envelope.py @@ -125,21 +125,6 @@ class SendCommand(Command): account = ui.accountman.get_accounts()[0] omit_signature = True - # attach signature file if present - if account.signature and not omit_signature: - sig = os.path.expanduser(account.signature) - if os.path.isfile(sig): - if account.signature_filename: - name = account.signature_filename - else: - name = None - envelope.attach(sig, filename=name) - else: - ui.notify('could not locate signature: %s' % sig, - priority='error') - if (yield ui.choice('send without signature', - select='yes', cancel='no')) == 'no': - return # send clearme = ui.notify('sending..', timeout=-1) |