Little regression...

This commit is contained in:
tonio
2010-05-05 13:22:42 +02:00
parent 6adbc5c6be
commit c7c85dba0e
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -372,6 +372,8 @@ class ImapEmail(Email):
pass
def render_headers(self, **kwargs):
from django.template.loader import render_to_string
attachments = []
for part in self.attachments:
decoded = decode_header(part.get_filename())
+1 -1
View File
@@ -151,7 +151,7 @@ def getmailcontent(request, folder, mail_id):
except KeyError:
pageid = "1"
return _render(request, "common/viewmail.html", {
"headers" : email.render_headers(folder, mail_id),
"headers" : email.render_headers(folder=folder, mail_id=mail_id),
"folder" : folder, "imapid" : mail_id, "mailbody" : email.body,
"pre" : email.pre
})