diff options
author | Jannis M. Hoffmann <jannis@fehcom.de> | 2024-11-17 14:02:42 +0100 |
---|---|---|
committer | Jannis M. Hoffmann <jannis@fehcom.de> | 2024-11-17 14:02:42 +0100 |
commit | e7ead98e5aaf294b2c498925bdc3dc9b63fdc980 (patch) | |
tree | 29a76d49e7675f4e7f7ea311d59cf3b2113d94c4 | |
parent | 3e052f72c160adc5422bb09bc25c5dd38ee59170 (diff) |
fix rendering mails in sub folders
-rw-r--r-- | src/jwebmail/__init__.py | 2 | ||||
-rw-r--r-- | src/jwebmail/render_mail.py | 9 |
2 files changed, 9 insertions, 2 deletions
diff --git a/src/jwebmail/__init__.py b/src/jwebmail/__init__.py index fe32430..01cb70b 100644 --- a/src/jwebmail/__init__.py +++ b/src/jwebmail/__init__.py @@ -36,7 +36,7 @@ else: toml_read_file = dict(load=toml_load, text=True) -__version__ = "2.6.0.dev2" +__version__ = "2.6.0.dev3" csrf = CSRFProtect() 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", |