summaryrefslogtreecommitdiff
path: root/src/jwebmail/render_mail.py
diff options
context:
space:
mode:
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",