From b73ed6ebd3cca86de065549cfb0d109a1d0461c5 Mon Sep 17 00:00:00 2001 From: "Jannis M. Hoffmann" Date: Wed, 10 Apr 2024 19:05:10 +0200 Subject: split js files and do local time conversion --- src/jwebmail/render_mail.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/jwebmail/render_mail.py') diff --git a/src/jwebmail/render_mail.py b/src/jwebmail/render_mail.py index f597603..d348721 100644 --- a/src/jwebmail/render_mail.py +++ b/src/jwebmail/render_mail.py @@ -50,8 +50,7 @@ def render_multipart_alternative(_subtype, content, path): C += "" T += "" - script_url = url_for("static", filename="src/rendermail.js") - return f'
\n{T}\n{C}\n
\n' + return f'
\n{T}\n{C}\n
\n' def render_multipart(_subtype, content, path): @@ -123,7 +122,8 @@ def render_message(subtype, msg, path): R += _format_header(gettext("CC"), msg["head"].get("cc")) R += _format_header(gettext("BCC"), msg["head"].get("bcc")) R += f"
{escape(gettext('Date'))}
" - R += f"
{escape(msg['head']['date'])}
\n" + date = escape(msg['head']['date']) + R += f"
\n" R += f"
{escape(gettext('Content-Type'))}
" R += f"
{to_mime_type(msg['head']['mime'])}
\n" R += "\n" -- cgit v1.2.3