diff options
Diffstat (limited to 'alot/commands/envelope.py')
-rw-r--r-- | alot/commands/envelope.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/alot/commands/envelope.py b/alot/commands/envelope.py index e6d139d5..1c13044c 100644 --- a/alot/commands/envelope.py +++ b/alot/commands/envelope.py @@ -11,6 +11,8 @@ import re import tempfile import textwrap +from twisted.internet.defer import ensureDeferred + from . import Command, registerCommand from . import globals from . import utils @@ -279,7 +281,7 @@ class SendCommand(Command): clearme = ui.notify('sending..', timeout=-1) if self.envelope is not None: self.envelope.sending = True - d = account.send_mail(self.mail) + d = ensureDeferred(account.send_mail(self.mail)) d.addCallback(afterwards) d.addErrback(send_errb) d.addErrback(store_errb) |