mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-12 09:37:04 +01:00
fix filenames
This commit is contained in:
parent
6d37ebf79e
commit
af8a6c3764
2 changed files with 4 additions and 4 deletions
|
|
@ -251,7 +251,7 @@ class MailDocumentParser(DocumentParser):
|
|||
with open(css_file, "rb") as css_handle:
|
||||
|
||||
files = {
|
||||
"html": ("email_msg_template.html", self.mail_to_html(mail)),
|
||||
"html": ("index.html", self.mail_to_html(mail)),
|
||||
"css": ("output.css", css_handle),
|
||||
}
|
||||
headers = {}
|
||||
|
|
@ -296,7 +296,7 @@ class MailDocumentParser(DocumentParser):
|
|||
files.append((name_clean, BytesIO(a.payload)))
|
||||
html_clean = html_clean.replace(name_cid, name_clean)
|
||||
|
||||
files.append(("email_msg_template.html", StringIO(html_clean)))
|
||||
files.append(("index.html", StringIO(html_clean)))
|
||||
|
||||
return files
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue