diff options
author | Kali Kaneko <kali@leap.se> | 2015-01-22 00:47:42 -0400 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2015-02-11 14:05:43 -0400 |
commit | f8c07f66bfcd97e3ae7085071c1f1efbd80e0286 (patch) | |
tree | c211d848c5db27ffc15b71f1031dffa13d6ffddf /src/leap/mail/smtp/gateway.py | |
parent | b67997517d7901cf92eda9d9c68440bb8424e439 (diff) |
fix typo
Diffstat (limited to 'src/leap/mail/smtp/gateway.py')
-rw-r--r-- | src/leap/mail/smtp/gateway.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/leap/mail/smtp/gateway.py b/src/leap/mail/smtp/gateway.py index 222ef3f..1a187cf 100644 --- a/src/leap/mail/smtp/gateway.py +++ b/src/leap/mail/smtp/gateway.py @@ -219,7 +219,7 @@ class SMTPDelivery(object): d = self._km.get_key(address, OpenPGPKey) # might raise KeyNotFound d.addCallbacks(found, not_found) - d.addCallbac(lambda _: EncryptedMessage(user, self._outgoing_mail)) + d.addCallback(lambda _: EncryptedMessage(user, self._outgoing_mail)) return d def validateFrom(self, helo, origin): @@ -306,4 +306,6 @@ class EncryptedMessage(object): log.err() signal(proto.SMTP_CONNECTION_LOST, self._user.dest.addrstr) # unexpected loss of connection; don't save + + self._lines = [] |