Bug 365842: Title bar displays email address rather than Account name

p=Žiga Sancin <bisi@pikslar.com>, r=mkmelin


git-svn-id: svn://10.0.0.236/trunk@249854 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mkmelin+mozilla%iki.fi 2008-04-08 20:30:04 +00:00
parent 42b796e945
commit 03dd956eae
2 changed files with 7 additions and 7 deletions

View File

@ -97,7 +97,7 @@ function setTitleFromFolder(msgfolder, subject)
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")
// message in the title. ("Inbox - My Mail - 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"
@ -116,15 +116,16 @@ function setTitleFromFolder(msgfolder, subject)
// <folder> on <hostname>
middle = gMessengerBundle.getString("titleNewsPreHost");
end = server.hostName;
} else {
}
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;
// <folder> - <server.prettyName>
middle = "-";
end = server.prettyName;
} catch (ex) {}
}
if (middle) title += " " + middle;
@ -133,7 +134,7 @@ function setTitleFromFolder(msgfolder, subject)
}
#ifndef XP_MACOSX
title += " - " + gBrandBundle.getString("brandShortName");
title += " - " + gBrandBundle.getString("brandFullName");
#endif
document.title = title;
}

View File

@ -52,7 +52,6 @@ newTag=New Tag…
getNextNMessages=Get Next %S News Messages
advanceNextPrompt=Advance to next unread message in %S?
titleNewsPreHost=on
titleMailPreHost=for
replyToSender=Reply to Sender
reply=Reply
EMLFiles=Mail Files