rem: if (msgfolder) 
add:      if (wintype == "mail:messageWindow") title = subject; else if (msgfolder) 
context: function setTitleFromFolder(msgfolder, subject){    var title = subject || "";    if (msgfolder)    {      if (title)        title += " - ";      title += msgfolder.prettyName;      if (!msgfolder.isServer)      {        var server = msgfolder.server;        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) {}            }        if (middle) title += " " + middle;        if (end) title += " " + end;    }    }#ifndef XP_MACOSX    title += " - " + gBrandBundle.getString("brandShortName");#endif    window.title = title;}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/b5eef6fd2a0da31352017c4b6bcaf77c27cba758/commandglue.js/clean/mail/base/content/commandglue.js