summaryrefslogtreecommitdiff
path: root/src/jwebmail/render_mail.py
diff options
context:
space:
mode:
authorJannis M. Hoffmann <jannis@fehcom.de>2024-11-17 14:51:58 +0100
committerJannis M. Hoffmann <jannis@fehcom.de>2024-11-17 14:51:58 +0100
commitf21f24f442e05fa452adac177cd0ba696e5f2c8f (patch)
tree1088f823c44931c9c137d7336fcc9f4d77d1f8d2 /src/jwebmail/render_mail.py
parente7ead98e5aaf294b2c498925bdc3dc9b63fdc980 (diff)
fix rendering of mails in home folder
moved some logic into .read_mails.login
Diffstat (limited to 'src/jwebmail/render_mail.py')
-rw-r--r--src/jwebmail/render_mail.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/jwebmail/render_mail.py b/src/jwebmail/render_mail.py
index eec6e30..c36150d 100644
--- a/src/jwebmail/render_mail.py
+++ b/src/jwebmail/render_mail.py
@@ -11,7 +11,7 @@ def render_text_html(_subtype, _content, path):
if path:
url = url_for(
"read",
- folder=request.view_args["folder"],
+ folder=request.view_args.get("folder", ""),
msgid=request.view_args["msgid"],
format="raw",
path=".".join(map(str, path)),
@@ -19,7 +19,7 @@ def render_text_html(_subtype, _content, path):
else:
url = url_for(
"read",
- folder=request.view_args["folder"],
+ folder=request.view_args.get("folder", ""),
msgid=request.view_args["msgid"],
format="raw",
)
@@ -78,7 +78,7 @@ def render_multipart(_subtype, content, path):
ref_url = url_for(
"read",
- folder=request.view_args["folder"],
+ folder=request.view_args.get("folder", ""),
msgid=request.view_args["msgid"],
path=".".join(map(str, [*path, i])),
format="raw",