Bug 1734070 followup - Fix two tests. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D127604 --HG-- extra : amend_source : c109bbabe76e678a9da413c98c005eff471718f0
This commit is contained in:
Родитель
ba7d109e36
Коммит
6fda60c409
|
@ -194,7 +194,7 @@ class SmtpClient {
|
|||
break;
|
||||
}
|
||||
}
|
||||
if (firstInvalid != null) {
|
||||
if (!recipient || firstInvalid != null) {
|
||||
if (!lastAt) {
|
||||
// Invalid char found in the localpart, throw error until we implement RFC 6532.
|
||||
this.onerror(NS_ERROR_BUT_DONT_SHOW_ALERT, null);
|
||||
|
|
|
@ -100,7 +100,7 @@ SmtpService.prototype = {
|
|||
fresh = false;
|
||||
let from = sender;
|
||||
let to = MailServices.headerParser
|
||||
.parseEncodedHeader(decodeURIComponent(recipients))
|
||||
.parseEncodedHeaderW(decodeURIComponent(recipients))
|
||||
.map(rec => rec.email);
|
||||
|
||||
if (
|
||||
|
@ -114,7 +114,7 @@ SmtpService.prototype = {
|
|||
.msgGenerateMessageId(userIdentity);
|
||||
}
|
||||
client.useEnvelope({
|
||||
from: MailServices.headerParser.parseEncodedHeader(
|
||||
from: MailServices.headerParser.parseEncodedHeaderW(
|
||||
decodeURIComponent(from)
|
||||
)[0].email,
|
||||
to,
|
||||
|
|
|
@ -308,7 +308,7 @@ add_task(async function testBccOnlyWithSendLater() {
|
|||
// Should not include RCPT TO:<undisclosed-recipients: ;>
|
||||
do_check_transaction(gServer.playTransaction(), [
|
||||
"EHLO test",
|
||||
"MAIL FROM:<from@tinderbox.invalid> BODY=8BITMIME SIZE=408",
|
||||
`MAIL FROM:<from@tinderbox.invalid> BODY=8BITMIME SIZE=${gServer._daemon.post.length}`,
|
||||
"RCPT TO:<bcc@tinderbox.invalid>",
|
||||
"DATA",
|
||||
]);
|
||||
|
|
Загрузка…
Ссылка в новой задаче