mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-09-20 07:35:55 +08:00
Bugfix: when decrypt message, subject was replaced empty
This commit is contained in:
parent
7a98e5e7d4
commit
60dca97603
|
@ -13,10 +13,11 @@ export function MimeToMessage(data, message)
|
|||
let signed;
|
||||
const struct = ParseMime(data);
|
||||
if (struct.headers) {
|
||||
let html = struct.getByContentType('text/html');
|
||||
let html = struct.getByContentType('text/html'),
|
||||
subject = struct.headerValue('subject');
|
||||
html = html ? html.body : '';
|
||||
|
||||
message.subject(struct.headerValue('subject') || '');
|
||||
subject && message.subject(subject);
|
||||
|
||||
// EmailCollectionModel
|
||||
['from','to'].forEach(name => message[name].fromString(struct.headerValue(name)));
|
||||
|
|
Loading…
Reference in a new issue