I am just starting to learn how to use XPCom/RDF/Javascript to interact with mail,folders, etc. My first project is to create a simple example that just creates a new folder "aaa" inside the local folder "foo/bar".

So I have a simple XUL window that calls onLoad() in the attached javascript. I copied various pieces of code from
chrome/messenger/content/messenger/mailCommands.js to create this javascript.

Then I run the following,  but the new folder "aaa" is still not created:


hiros-item(ekoontz)[~/My_Documents/public_html/bug11013/tiny] $ mozilla chrome://tiny/content/minimal_window.xul
Type Manifest File: /usr/local/lib/mozilla-1.8b2/components/xpti.dat
+++ JavaScript debugging hooks installed.
nsNativeComponentLoader: autoregistering begins.
nsNativeComponentLoader: autoregistering succeeded
nsNativeComponentLoader: registering deferred (0)
WARNING: NS_ENSURE_TRUE(NS_SUCCEEDED(rv)) failed, file Core.cpp, line 304
GFX: dpi=75 t2p=0.0526316 p2t=19 depth=24
++WEBSHELL == 1
WARNING: NS_ENSURE_TRUE(NS_SUCCEEDED(rv)) failed, file nsPermissionManager.cpp, line 624
++DOMWINDOW == 1
++WEBSHELL == 2
++DOMWINDOW == 2
Note: styleverifytree is disabled
Note: frameverifytree is disabled
Note: verifyreflow is disabled
++WEBSHELL == 3
++DOMWINDOW == 3
window moved to offscreen position
window moved to offscreen position
window moved to offscreen position
window moved to offscreen position
window moved to offscreen position
window moved to offscreen position
creating new folder now.NewFolder : uri = aaa,name = mailbox://[EMAIL PROTECTED]/foo/bar
selectedFolderResource = [xpconnect wrapped nsIRDFResource @ 0x85ff828]
DONE MAKING FOLDER!!!Document chrome://tiny/content/minimal_window.xul loaded successfully



Can some mailnews developer tell me what else I need to do? Is the problem related to the "Permissions" output in the above?

Here are the 2 source files on the web:

http://hiro-tan.org/~ekoontz/bug11013/tiny/minimal_window.xul
http://hiro-tan.org/~ekoontz/bug11013/tiny/minimal_window.js


Thanks,

Eugene

Attachment: minimal_window.js
Description: JavaScript source



Reply via email to