diff options
Diffstat (limited to 'src/jwebmail/render_mail.py')
-rw-r--r-- | src/jwebmail/render_mail.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/jwebmail/render_mail.py b/src/jwebmail/render_mail.py index bbac94b..eec6e30 100644 --- a/src/jwebmail/render_mail.py +++ b/src/jwebmail/render_mail.py @@ -11,12 +11,18 @@ def render_text_html(_subtype, _content, path): if path: url = url_for( "read", + folder=request.view_args["folder"], msgid=request.view_args["msgid"], format="raw", path=".".join(map(str, path)), ) else: - url = url_for("read", msgid=request.view_args["msgid"], format="raw") + url = url_for( + "read", + folder=request.view_args["folder"], + msgid=request.view_args["msgid"], + format="raw", + ) return f'<iframe src="{url}" class="jwm-mail-body-text-html" ></iframe>\n' @@ -72,6 +78,7 @@ def render_multipart(_subtype, content, path): ref_url = url_for( "read", + folder=request.view_args["folder"], msgid=request.view_args["msgid"], path=".".join(map(str, [*path, i])), format="raw", |