Bug 503668: Pluggable filter lists; r=Mnyromyr, sr=Neil

This commit is contained in:
Bruno Escherl 2009-07-19 20:11:57 +02:00
Родитель bc8e31129a
Коммит 0634647060
2 изменённых файлов: 5 добавлений и 11 удалений

Просмотреть файл

@ -1808,19 +1808,13 @@ function MsgFilters(emailAddress, folder)
var args;
if (emailAddress)
{
/* we have to do prefill filter so we are going to
launch the filterEditor dialog
and prefill that with the emailAddress */
var curFilterList = folder.getFilterList(msgWindow);
args = {filterList: curFilterList};
args.filterName = emailAddress;
// Prefill the filterEditor with the emailAddress.
args = {filterList: folder.getEditableFilterList(msgWindow), filterName: emailAddress};
window.openDialog("chrome://messenger/content/FilterEditor.xul", "",
"chrome, modal, resizable,centerscreen,dialog=yes", args);
/* if the user hits ok in the filterEditor dialog we set
args.refresh=true there
we check this here in args to show filterList dialog */
// args.refresh is set to true in the filterEditor, if the user hits ok.
// We check this here in args to show the filterList dialog.
if ("refresh" in args && args.refresh)
{
args = { refresh: true, folder: folder };

Просмотреть файл

@ -271,7 +271,7 @@ function setServer(uri)
var msgFolder = resource.QueryInterface(Components.interfaces.nsIMsgFolder);
//Calling getFilterList will detect any errors in rules.dat, backup the file, and alert the user
gFilterTreeView.filterList = msgFolder.getFilterList(gFilterListMsgWindow);
gFilterTreeView.filterList = msgFolder.getEditableFilterList(gFilterListMsgWindow);
// this will get the deferred to account root folder, if server is deferred
msgFolder = msgFolder.server.rootMsgFolder;