Skip to content

Commit 607ea16

Browse files
committed
🐛(backend) allow to import eml as text/plain
Add support of text/plain files for EML upload
1 parent d997d11 commit 607ea16

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/backend/core/enums.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,6 @@ class MessageTemplateTypeChoices(models.IntegerChoices):
121121
SIGNATURE = 2, "signature"
122122

123123

124-
EML_SUPPORTED_MIME_TYPES = ["message/rfc822", "application/eml"]
125-
MBOX_SUPPORTED_MIME_TYPES = [
126-
"application/octet-stream",
127-
"text/plain",
128-
"application/mbox",
129-
]
124+
EML_SUPPORTED_MIME_TYPES = ["message/rfc822", "application/eml", "text/plain"]
125+
MBOX_SUPPORTED_MIME_TYPES = ["application/octet-stream", "text/plain", "application/mbox"]
130126
ARCHIVE_SUPPORTED_MIME_TYPES = EML_SUPPORTED_MIME_TYPES + MBOX_SUPPORTED_MIME_TYPES

0 commit comments

Comments
 (0)