mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-08 00:47:04 +03:00
Bugfix: when decrypt message, subject was replaced empty
This commit is contained in:
parent
7a98e5e7d4
commit
60dca97603
1 changed files with 3 additions and 2 deletions
|
|
@ -13,10 +13,11 @@ export function MimeToMessage(data, message)
|
||||||
let signed;
|
let signed;
|
||||||
const struct = ParseMime(data);
|
const struct = ParseMime(data);
|
||||||
if (struct.headers) {
|
if (struct.headers) {
|
||||||
let html = struct.getByContentType('text/html');
|
let html = struct.getByContentType('text/html'),
|
||||||
|
subject = struct.headerValue('subject');
|
||||||
html = html ? html.body : '';
|
html = html ? html.body : '';
|
||||||
|
|
||||||
message.subject(struct.headerValue('subject') || '');
|
subject && message.subject(subject);
|
||||||
|
|
||||||
// EmailCollectionModel
|
// EmailCollectionModel
|
||||||
['from','to'].forEach(name => message[name].fromString(struct.headerValue(name)));
|
['from','to'].forEach(name => message[name].fromString(struct.headerValue(name)));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue