From d6b03bb33338733a8b175d97393ce5289e72e231 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Mon, 11 Jun 2012 20:59:15 +0200 Subject: Fix PGP/MIME attachments This actually is a workaround for a Python bug as mentioned in alot/crypto.py --- alot/account.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'alot/account.py') 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 -- cgit v1.2.3