Bug 402392 - Suite Portion. r=bienvenu

This commit is contained in:
Justin Wood 2012-01-01 01:05:17 -05:00
Родитель 8443cde478
Коммит 90c5aa8785
1 изменённых файлов: 5 добавлений и 1 удалений

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

@ -933,9 +933,13 @@ function CreateVirtualFolder(newName, parentFolder, searchFolderURIs, searchTer
// ### need to make sure view/folder doesn't exist.
if (searchFolderURIs && (searchFolderURIs != "") && newName && (newName != ""))
{
var newFolder;
try
{
var newFolder = parentFolder.addSubfolder(newName);
if (parentFolder instanceof(Components.interfaces.nsIMsgLocalMailFolder))
newFolder = parentFolder.createLocalSubfolder(newName);
else
newFolder = parentFolder.addSubfolder(newName);
newFolder.setFlag(Components.interfaces.nsMsgFolderFlags.Virtual);
var vfdb = newFolder.msgDatabase;
var searchTermString = getSearchTermString(searchTerms);