Victor Kazmirenko wrote:
> I have noticed one unconvenient feature. When I try to start a new
> discussion in newsgroup, address field of Composer is not
> automatically filled with the name of current newsgroup. Instead it
> contains only "To" and blank field.
The cause of this is the following code in mailOverlay.xul:
try
{
var cwindowManager =
Components.classes['@mozilla.org/rdf/datasource;1?name=window-mediator'].getService();
var iwindowManager = Components.interfaces.nsIWindowMediator;
var windowManager = cwindowManager.QueryInterface(iwindowManager);
var mailWindow = windowManager.getMostRecentWindow('mail:3pane');
var folder = mailWindow.GetFirstSelectedMsgFolder();
var server = folder.server;
//if the account is a news account use default identity
if (server.type != "nntp"){
mailWindow.MsgNewMessage();
return;
}
}
catch(ex) {
}
Personally I use this code:
if ("MsgNewMessage" in window) {
MsgNewMessage();
return;
}
Note that this means that if I press ^M in a browser window I always get
a mail message using the default identity, even if I have another
identity selected in another window.