diff options
Diffstat (limited to 'alot/commands/envelope.py')
-rw-r--r-- | alot/commands/envelope.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/alot/commands/envelope.py b/alot/commands/envelope.py index 000e14db..80e13fba 100644 --- a/alot/commands/envelope.py +++ b/alot/commands/envelope.py @@ -246,10 +246,11 @@ class SendCommand(Command): cmd = commands.globals.BufferCloseCommand(self.envelope_buffer) ui.apply_command(cmd) ui.notify('mail sent successfully') - if self.envelope.replied: - self.envelope.replied.add_tags(account.replied_tags) - if self.envelope.passed: - self.envelope.passed.add_tags(account.passed_tags) + if self.envelope is not None: + if self.envelope.replied: + self.envelope.replied.add_tags(account.replied_tags) + if self.envelope.passed: + self.envelope.passed.add_tags(account.passed_tags) # store mail locally # This can raise StoreMailError |