Mailvelope: Fix bug where recipients with name were not handled properly in mail compose (#7312)

bnet/additions
Aleksander Machniak 4 years ago
parent 808f374f42
commit 0d43c51ce1

@ -19,6 +19,7 @@ CHANGELOG Roundcube Webmail
- Markasjunk: Fix bug where moving to Junk was failing on messages selected with Select > All (#7206)
- Fix so imap error message is displayed to the user on folder create/update (#7245)
- Fix bug where a special folder couldn't be created if a special-use flag is not supported (#7147)
- Mailvelope: Fix bug where recipients with name were not handled properly in mail compose (#7312)
RELEASE 1.4.3
-------------

@ -3907,7 +3907,7 @@ function rcube_webmail()
$.each(['to', 'cc', 'bcc'], function(i,field) {
var pos, rcpt, val = $.trim($('[name="_' + field + '"]').val());
while (val.length && rcube_check_email(val, true)) {
rcpt = RegExp.$2;
rcpt = RegExp.$2.replace(/^<+/, '').replace(/>+$/, '');
recipients.push(rcpt);
val = val.substr(val.indexOf(rcpt) + rcpt.length + 1).replace(/^\s*,\s*/, '');
}

Loading…
Cancel
Save