rem: window.title = title; 
add: document.title = title; 
context: function setTitleFromFolder(msgfolder, subject){    var wintype = document.firstChild.getAttribute('windowtype');    var title;     // If we are showing the mail:3pane. Never include the subject of the selected    // message in the title. ("Inbox for greenlantern@mozilla.org - Mozilla Thunderbird")    // If we are a stand alone message window, we should show the Subject    // and the product but not the account name: "Re: New window Title - Mozilla Thunderbird"    if (wintype == "mail:messageWindow")        title = subject ? subject : "";    else if (msgfolder)    {      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: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/a3b05ed4a5a956fb8d372d5155940ef4aea0b285/commandglue.js/buggy/mail/base/content/commandglue.js