Bug 823498 - Missing Message-ID header in invitation email;regression fix;r=philipp

This commit is contained in:
MakeMyDay 2015-02-23 20:26:38 +01:00
Родитель 5557da7445
Коммит e74fe58c72
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -235,7 +235,7 @@ calItipEmailTransport.prototype = {
.createInstance(Components.interfaces.nsIMsgCompFields);
composeFields.characterSet = "UTF-8";
composeFields.to = toList;
let mailfrom = (!identity.fullName.length) ? identity.mail : identity.fullName + "<" + identity.mail + ">";
let mailfrom = (!identity.fullName.length) ? identity.mail : identity.fullName + " <" + identity.mail + ">";
composeFields.from = (cal.validateRecipientList(mailfrom) == mailfrom)
? mailfrom : identity.email;
composeFields.replyTo = identity.replyTo;
@ -332,7 +332,6 @@ calItipEmailTransport.prototype = {
(aIdentity.organization
? "Organization: " + aIdentity.organization + "\r\n" : "") +
"Message-ID: " + aMessageId + "\r\n" +
"User-Agent: " + cal.calUserAgent() "\r\n"+
"To: " + aToList + "\r\n" +
"Date: " + (new Date()).toUTCString() + "\r\n" +
"Subject: " + encodeMimeHeader(aSubject.replace(/(\n|\r\n)/, "|")) + "\r\n");