I've simple code..

var mailList = Components.classes["@mozilla.org/addressbook/directoryproperty;1"].createInstance()
        .QueryInterface(Components.interfaces.nsIAbDirectory);

mailList.dirName = "NewL";

addrbook.addMailList(mailList);


var mailListSub = Components.classes["@mozilla.org/addressbook/directoryproperty;1"].createInstance()
        .QueryInterface(Components.interfaces.nsIAbDirectory);

mailListSub.dirName = "NewL";

mailList.addMailList(mailListSub);

But the last line dosn't work .. (Return ERROR)

Is there any way to create REAL TREE structure ( not only one level of "sub folders" - mail lists ) ??

Honza T_
_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom

Reply via email to