From e74fe58c722eaf5f8991c8b5583afd2e00668035 Mon Sep 17 00:00:00 2001 From: MakeMyDay Date: Mon, 23 Feb 2015 20:26:38 +0100 Subject: [PATCH] Bug 823498 - Missing Message-ID header in invitation email;regression fix;r=philipp --- calendar/itip/calItipEmailTransport.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/calendar/itip/calItipEmailTransport.js b/calendar/itip/calItipEmailTransport.js index 618e3e2547..f6db3284b3 100644 --- a/calendar/itip/calItipEmailTransport.js +++ b/calendar/itip/calItipEmailTransport.js @@ -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");