Bug 1137672 - Fix sending event reply emails due to missing composeUtils assignment. r=makemyday

This commit is contained in:
Brian O'Keefe 2015-02-27 05:02:00 +01:00
Родитель 69bf127259
Коммит 8929005942
1 изменённых файлов: 2 добавлений и 3 удалений

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

@ -227,6 +227,8 @@ calItipEmailTransport.prototype = {
// Add this recipient id to the list.
toList += rId;
}
let composeUtils = Components.classes["@mozilla.org/messengercompose/computils;1"]
.createInstance(Components.interfaces.nsIMsgCompUtils);
let messageId = composeUtils.msgGenerateMessageId(identity);
let mailFile = this._createTempImipFile(compatMode, toList, aSubject, aBody, aItem, identity, messageId);
if (mailFile) {
@ -319,9 +321,6 @@ calItipEmailTransport.prototype = {
let fullFrom = !aIdentity.fullName.length ? null :
cal.validateRecipientList(aIdentity.fullName + "<" + aIdentity.email + ">");
let composeUtils = Components.classes["@mozilla.org/messengercompose/computils;1"]
.createInstance(Components.interfaces.nsIMsgCompUtils);
// Home-grown mail composition; I'd love to use nsIMimeEmitter, but it's not clear to me whether
// it can cope with nested attachments,
// like multipart/alternative with enclosed text/calendar and text/plain.