rem: var emailSvc = Cc["@mozilla.org/calendar/itip-transport;1?type=email"]. getService(Ci.calIItipTransport); 
add: var emailSvc = Components.classes["@mozilla.org/calendar/itip-transport;1?type=email"] .getService(Components.interfaces.calIItipTransport); 
context: function getMsgRecipient(){    var imipRecipient = "";    var msgURI = GetLoadedMessage();    var msgHdr = messenger.messageServiceFromURI(msgURI)                          .messageURIToMsgHdr(msgURI);    // msgHdr recipients can be a comma separated list of recipients.    // We then compare against the defaultIdentity to find ourselves.    // XXX This won't always work:    //     Users with multiple accounts and invites going to the non-default    //     account, Users with email aliases where the defaultIdentity.email    //     doesn't match the recipient, etc.    if (msgHdr) {        var recipientList = msgHdr.recipients;        // Remove any spaces        recipientList = recipientList.split(" ").join("");        recipientList = recipientList.split(",");        var emailSvc = Cc["@mozilla.org/calendar/itip-transport;1?type=email"].                       getService(Ci.calIItipTransport);        var me = emailSvc.defaultIdentity;        var lt;        var gt;        for each (var recipient in recipientList) {            // Deal with <foo@bar.com> style addresses            lt = recipient.indexOf("<");            gt = recipient.indexOf(">");            // I chose 6 since <a@b.c> is the shortest technically valid email            // address I could come up with.            if ((lt >= 0) && (gt >= 6)) {                recipient = recipient.substring(lt+1, gt);            }            if (recipient.toLowerCase() == me.toLowerCase()) {                imipRecipient = recipient;            }        }    }    return imipRecipient;}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/8395/6b4d8f96f4092c4d68b93256700b25be955d0946/imip-bar.js/clean/calendar/lightning/content/imip-bar.js