mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Resolve #1381
This commit is contained in:
parent
06fdf66748
commit
30ed8dde11
3 changed files with 7 additions and 6 deletions
|
|
@ -187,7 +187,7 @@ export class MessageModel extends AbstractModel {
|
||||||
folder: this.folder,
|
folder: this.folder,
|
||||||
uid: this.uid,
|
uid: this.uid,
|
||||||
mimeType: RFC822,
|
mimeType: RFC822,
|
||||||
fileName: (this.subject() || 'message-' + this.hash) + '.eml',
|
fileName: (this.subject() || 'message') + '-' + this.hash + '.eml',
|
||||||
accountHash: SettingsGet('accountHash')
|
accountHash: SettingsGet('accountHash')
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1187,10 +1187,11 @@ export class ComposePopupView extends AbstractViewPopup {
|
||||||
*/
|
*/
|
||||||
addMessageAsAttachment(message) {
|
addMessageAsAttachment(message) {
|
||||||
if (message) {
|
if (message) {
|
||||||
let temp = message.subject();
|
const attachment = new ComposeAttachmentModel(
|
||||||
temp = '.eml' === temp.slice(-4).toLowerCase() ? temp : temp + '.eml';
|
message.requestHash,
|
||||||
|
message.subject() /*+ '-' + Jua.randomId()*/ + '.eml',
|
||||||
const attachment = new ComposeAttachmentModel(message.requestHash, temp, message.size());
|
message.size()
|
||||||
|
);
|
||||||
attachment.fromMessage = true;
|
attachment.fromMessage = true;
|
||||||
attachment.complete(true);
|
attachment.complete(true);
|
||||||
this.addAttachment(attachment);
|
this.addAttachment(attachment);
|
||||||
|
|
|
||||||
|
|
@ -100,7 +100,7 @@
|
||||||
{
|
{
|
||||||
'msgHash': msg.requestHash,
|
'msgHash': msg.requestHash,
|
||||||
'folder': folder,
|
'folder': folder,
|
||||||
'filename': msg.subject()
|
'filename': msg.subject() + '-' + msg.requestHash
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue