mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-31 13:09:21 +03:00
Cleaner Content-Type detection for mimeToMessage()
This commit is contained in:
parent
983a2db418
commit
384230f7bf
1 changed files with 1 additions and 1 deletions
|
|
@ -62,7 +62,7 @@ const
|
|||
mimeToMessage = (data, message) => {
|
||||
// TODO: Check multipart/signed application/pgp-signature application/pgp-keys
|
||||
const headers = data.split(/\r?\n\r?\n/)[0];
|
||||
if (/Content-Type:[\s\S]*?;\s*boundary=/.test(headers)) {
|
||||
if (/Content-Type:[\s\S]*?/.test(headers)) {
|
||||
// https://github.com/postalsys/postal-mime
|
||||
(new PostalMime).parse(data).then(result => {
|
||||
// TODO: multipart/signed
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue