diff options
author | Patrick Totzke <patricktotzke@gmail.com> | 2012-08-10 20:51:44 +0100 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2012-08-10 20:51:44 +0100 |
commit | 354fa0d47bdb31637eccfc63c2e80ce3a0a6d583 (patch) | |
tree | 4d37a55c8d7f96747340141376aba8e5f99891d0 | |
parent | 3a3840e501818e6feae909c29d7cb1eecb006dce (diff) |
SendCommand: add some inline docs
-rw-r--r-- | alot/commands/envelope.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/alot/commands/envelope.py b/alot/commands/envelope.py index bb970e6a..de731325 100644 --- a/alot/commands/envelope.py +++ b/alot/commands/envelope.py @@ -119,6 +119,9 @@ class SendCommand(Command): currentbuffer = ui.current_buffer # needed to close later envelope = currentbuffer.envelope + # This is to warn the user before re-sending + # an already sent message in case the envelope buffer + # was not closed because it was the last remaining buffer. if envelope.sent_time: warning = 'A modified version of ' * envelope.modified_since_sent warning += 'this message has been sent at %s.' % envelope.sent_time @@ -127,6 +130,8 @@ class SendCommand(Command): msg_position='left')) == 'no': return + # don't do anything if another SendCommand is in the middle of sending + # the message and we were triggered accidentally if envelope.sending: msg = 'sending this message already!' logging.debug(msg) |