summaryrefslogtreecommitdiff
path: root/alot/account.py
diff options
context:
space:
mode:
authorMichael Stapelberg <michael@stapelberg.de>2012-06-11 20:59:15 +0200
committerPatrick Totzke <patricktotzke@gmail.com>2012-07-22 19:32:53 +0100
commitd6b03bb33338733a8b175d97393ce5289e72e231 (patch)
tree2b77609e6ee4044aadb45a75866d4edfcf123cf2 /alot/account.py
parentacfaf1f9b8a4ad6b6e8cc1f6b56da0c0afbc76cf (diff)
Fix PGP/MIME attachments
This actually is a workaround for a Python bug as mentioned in alot/crypto.py
Diffstat (limited to 'alot/account.py')
-rw-r--r--alot/account.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/alot/account.py b/alot/account.py
index a08be7ec..6bee5706 100644
--- a/alot/account.py
+++ b/alot/account.py
@@ -4,7 +4,6 @@
import mailbox
import logging
import time
-import email
import os
import glob
@@ -153,7 +152,6 @@ class SendmailAccount(Account):
self.cmd = cmd
def send_mail(self, mail):
- mail['Date'] = email.utils.formatdate(time.time(), True)
cmdlist = split_commandstring(self.cmd)
def cb(out):
@@ -168,7 +166,7 @@ class SendmailAccount(Account):
logging.error(failure.value.stderr)
raise SendingMailFailed(errmsg)
- d = call_cmd_async(cmdlist, stdin=crypto.email_as_string(mail))
+ d = call_cmd_async(cmdlist, stdin=mail)
d.addCallback(cb)
d.addErrback(errb)
return d