rem: var identity; try { var identities = accountManager.GetIdentitiesForServer(server); 
add: var identity; try { var identities = accountManager.GetIdentitiesForServer(server); 
context: function setTitleFromFolder(msgfolder, subject){    if (!msgfolder) return;    var title;    var server = msgfolder.server;    if (null != subject)      title = subject+" - ";    else      title = "";    if (msgfolder.isServer)       title += server.prettyName;    else {        var middle;        var end;        if (server.type == "nntp") {            // <folder> on <hostname>            middle = gMessengerBundle.getString("titleNewsPreHost");            end = server.hostName;        } else {            var identity;            try {                var identities = accountManager.GetIdentitiesForServer(server);                identity = identities.QueryElementAt(0, Components.interfaces.nsIMsgIdentity);                // <folder> for <email>                middle = gMessengerBundle.getString("titleMailPreHost");                end = identity.email;            } catch (ex) {            }        }        title += msgfolder.prettyName;        if (middle) title += " " + middle;        if (end) title += " " + end;    }    title += " - " + gBrandBundle.getString("brandShortName");    window.title = title;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/7dcfa8d2e69256251ac2444288c197b0dc858104/commandglue.js/buggy/mailnews/base/resources/content/commandglue.js