Honza T_ wrote:
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 ) ??
It won't work because addMailList isn't implemented in
@mozilla.org/addressbook/directoryproperty (which is actually a
nsAbDirProperty in the code base). Its a known problem, see
https://bugzilla.mozilla.org/show_bug.cgi?id=40301
If you wish to extend the address book capabilities, we are welcoming
patches for it.
Standard8
_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom