summaryrefslogtreecommitdiff
path: root/src/leap/mail/outgoing/service.py
diff options
context:
space:
mode:
authorRuben Pollan <meskio@sindominio.net>2015-01-23 11:52:42 -0600
committerKali Kaneko <kali@leap.se>2015-02-11 14:05:44 -0400
commit078970756ef995b73e39cd00ba4cc27d42913750 (patch)
tree9c503c1038481b1d7567f113cb145d88b0dec25c /src/leap/mail/outgoing/service.py
parent9d2cf05fa575aa5a01e255837738f3aa2740b19e (diff)
Remove footer
Diffstat (limited to 'src/leap/mail/outgoing/service.py')
-rw-r--r--src/leap/mail/outgoing/service.py13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/leap/mail/outgoing/service.py b/src/leap/mail/outgoing/service.py
index b70b3b1..88b8895 100644
--- a/src/leap/mail/outgoing/service.py
+++ b/src/leap/mail/outgoing/service.py
@@ -67,8 +67,6 @@ class OutgoingMail:
A service for handling encrypted outgoing mail.
"""
- FOOTER_STRING = "I prefer encrypted email"
-
def __init__(self, from_address, keymanager, cert, key, host, port):
"""
Initialize the mail service.
@@ -220,7 +218,6 @@ class OutgoingMail:
:rtype: Deferred
"""
# pass if the original message's content-type is "multipart/encrypted"
- lines = raw.split('\r\n')
origmsg = Parser().parsestr(raw)
if origmsg.get_content_type() == 'multipart/encrypted':
@@ -230,16 +227,6 @@ class OutgoingMail:
username, domain = from_address.split('@')
to_address = validate_address(recipient.dest.addrstr)
- # add a nice footer to the outgoing message
- # XXX: footer will eventually optional or be removed
- if origmsg.get_content_type() == 'text/plain':
- lines.append('--')
- lines.append('%s - https://%s/key/%s' %
- (self.FOOTER_STRING, domain, username))
- lines.append('')
-
- origmsg = Parser().parsestr('\r\n'.join(lines))
-
def signal_encrypt_sign(newmsg):
signal(proto.SMTP_END_ENCRYPT_AND_SIGN,
"%s,%s" % (self._from_address, to_address))