MozillaZine

Creating subfolder result in corrupted name

Talk about add-ons and extension development.
T4ng10r
 
Posts: 17
Joined: April 30th, 2016, 4:34 am

Post Posted October 21st, 2016, 5:31 am

I've created set of scripts to speed up my daily work. One of them is creating separate folders for each important thread. With help of s3menuwizard plugin I attached those scripts to specific menu entries.

However, when I activate this script in home (the same account) folder is created properly. When I activate this script in work result is corrupted name/path.

Code: Select all
Application.console.log("Creating subfolder '" +newFolderName+"' in folder '"+parentFolder.URI+"'");
parentFolder.createSubfolder(newFolderName, msgWindow);
parentFolder.updateFolder(msgWindow);


In error console I see

Code: Select all
Testing if URI 'imap://user_account@outlook.office365.com/Folder1/Folder2/Folder3/NA05962503' exist   
Creating subfolder 'NA05962503' in folder 'imap://user_account@outlook.office365.com/Folder1/Folder2/Folder3'".


And in main folder I see Folder1^^Folder2^^Folder3^NA05962503

I'm sure that parent folder is gathered correctly (as you see its URI). I don't think that problem is with OS language or file encoding. Scripts are shared with VCS.

Thunderbird 45.2.0, OS Debian Stretch

Return to Extension Development


Who is online

Users browsing this forum: No registered users and 3 guests