From 4a954eb8e70bda5819f63da9cd841f1579573413 Mon Sep 17 00:00:00 2001 From: "Jannis M. Hoffmann" Date: Mon, 4 Dec 2023 23:15:38 +0100 Subject: add multi language urls update translations use redis as session store add requirements.txt file to pin dependencies add proper subfolder support improve compatibility with python 3.9 correct js for login focus --- src/jwebmail/render_mail.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/jwebmail/render_mail.py') diff --git a/src/jwebmail/render_mail.py b/src/jwebmail/render_mail.py index 0e5406c..804b200 100644 --- a/src/jwebmail/render_mail.py +++ b/src/jwebmail/render_mail.py @@ -143,7 +143,9 @@ def mime_render(maintype, subtype, content, path): renderer = MIMERenderSubs.get((maintype, subtype)) or MIMERenderSubs.get(maintype) if not renderer: - return f'

Unsupported MIME type of {maintype}/{subtype}.

\n' + typ = f"{maintype}/{subtype}" + msg = gettext("Unsupported MIME type of {mime_type}.").format(mime_type=typ) + return f'

{msg}

\n' return renderer(subtype, content, path) -- cgit v1.2.3