Creating subfolder result in corrupted name

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

Creating subfolder result in corrupted name

Post by T4ng10r »

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
Post Reply