mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Resolve #1332
This commit is contained in:
parent
638755bef3
commit
2916583d0b
6 changed files with 28 additions and 26 deletions
|
|
@ -3,6 +3,8 @@
|
|||
|
||||
import { arrayLength } from 'Common/Utils';
|
||||
|
||||
export const RFC822 = 'message/rfc822';
|
||||
|
||||
const
|
||||
cache = {},
|
||||
app = 'application/',
|
||||
|
|
@ -12,8 +14,8 @@ const
|
|||
lowerCase = text => text.toLowerCase().trim(),
|
||||
|
||||
exts = {
|
||||
eml: 'message/rfc822',
|
||||
mime: 'message/rfc822',
|
||||
eml: RFC822,
|
||||
mime: RFC822,
|
||||
vcard: 'text/vcard',
|
||||
vcf: 'text/vcard',
|
||||
htm: 'text/html',
|
||||
|
|
@ -188,7 +190,7 @@ export const FileInfo = {
|
|||
case ['php', 'js', 'css', 'xml', 'html'].includes(ext) || 'text/html' == mimeType:
|
||||
result = FileType.Code;
|
||||
break;
|
||||
case 'eml' == ext || ['message/delivery-status', 'message/rfc822'].includes(mimeType):
|
||||
case 'eml' == ext || ['message/delivery-status', RFC822].includes(mimeType):
|
||||
result = FileType.Eml;
|
||||
break;
|
||||
case 'ics' == ext || mimeType == 'text/calendar':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue