Merge pull request #1286 from rezaei92/master

Sending group email to all contact addresses
This commit is contained in:
the-djmaze 2023-12-11 11:07:30 +01:00 committed by GitHub
commit 65d469f71a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 42 additions and 3 deletions

View file

@ -1382,6 +1382,12 @@ export class ComposePopupView extends AbstractViewPopup {
}
});
let sToAddress = this.to();
if (/".*" <.*,.*>/g.test(sToAddress)) {
sToAddress = sToAddress.match(/<.*>/g)[0].replace(/[<>]/g, '');
}
const
identity = this.currentIdentity(),
params = {
@ -1390,7 +1396,7 @@ export class ComposePopupView extends AbstractViewPopup {
messageUid: this.draftUid(),
saveFolder: sSaveFolder,
from: this.from(),
to: this.to(),
to: sToAddress,
cc: this.cc(),
bcc: this.bcc(),
replyTo: this.replyTo(),