aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2009-07-15 14:06:03 -0400
committerW. Trevor King <wking@drexel.edu>2009-07-15 14:06:03 -0400
commite40048f10311f01a25cdd1872ac1dc014b9eef20 (patch)
treea682ca01d8e639a9d48b621e015fed8857a43783
parentf04ada1e90aaff9da1af46455a0ead597fc4deba (diff)
downloadbugseverywhere-e40048f10311f01a25cdd1872ac1dc014b9eef20.tar.gz
Minor tweaks in send_pgp_mime.py
* No reason to set maxheaderlen to something other than the default. * MIMEText sets content-type and charset automatically.
-rw-r--r--interfaces/email/interactive/send_pgp_mime.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/interfaces/email/interactive/send_pgp_mime.py b/interfaces/email/interactive/send_pgp_mime.py
index d5a6497..43c26d3 100644
--- a/interfaces/email/interactive/send_pgp_mime.py
+++ b/interfaces/email/interactive/send_pgp_mime.py
@@ -160,7 +160,7 @@ def flatten(msg):
"""
assert msg != None
fp = StringIO()
- g = Generator(fp, mangle_from_=False, maxheaderlen=60)
+ g = Generator(fp, mangle_from_=False)
g.flatten(msg)
text = fp.getvalue()
return text
@@ -329,9 +329,7 @@ class Mail (object):
return target_emails(self.headermsg)
def clearBodyPart(self):
body = MIMEText(self.body)
- body.add_header('Content-Type', 'text/plain')
body.add_header('Content-Disposition', 'inline')
- body.set_charset('us-ascii')
return body
def passphrase_arg(self, passphrase=None):
if passphrase == None and PASSPHRASE != None: