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);
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'".
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