mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-18 05:51:26 +02:00
Little regression...
This commit is contained in:
@@ -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())
|
||||
|
||||
@@ -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
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user