wangvisual / autoarchive

A Thunderbird extension that can move or archive your mails based on rules.
GNU General Public License v3.0
41 stars 13 forks source link

Exception TypeError: msgFolder is null when opening Add-on #114

Open jkavery opened 5 years ago

jkavery commented 5 years ago

When opening Awesome Auto Archive 0.8 to configure it for the first time, Thunderbird 60.5.1 (Linux) reported these exceptions:

Awesome Auto Archive startup...
Caught Exception TypeError: msgFolder is null
updateFolderStyle@chrome://awsomeautoarchive/content/autoArchivePrefDialog.jsm:103:1
initFolderPick@chrome://awsomeautoarchive/content/autoArchivePrefDialog.jsm:147:5
creatOneRule@chrome://awsomeautoarchive/content/autoArchivePrefDialog.jsm:270:7
creatNewRule@chrome://awsomeautoarchive/content/autoArchivePrefDialog.jsm:359:22
createRulesBasedOnString@chrome://awsomeautoarchive/content/autoArchivePrefDialog.jsm:378:65
syncFromPerf@chrome://awsomeautoarchive/content/autoArchivePrefDialog.jsm:388:5
anonymous@chrome://messenger/content/preferences/preferences.xml line 440 > Function:3:8
setElementValue@chrome://messenger/content/preferences/preferences.xml:442:20
updateElements@chrome://messenger/content/preferences/preferences.xml:562:13
_constructAfterChildren@chrome://messenger/content/preferences/preferences.xml:31:9
preference_XBL_Constructor@chrome://messenger/content/preferences/preferences.xml:169:11
  autoArchivePrefDialog.jsm:103:1
row is undefined  autoArchivePrefDialog.jsm:287
Caught Exception TypeError: msgFolder is null
updateFolderStyle@chrome://awsomeautoarchive/content/autoArchivePrefDialog.jsm:103:1
initFolderPick@chrome://awsomeautoarchive/content/autoArchivePrefDialog.jsm:147:5
creatOneRule@chrome://awsomeautoarchive/content/autoArchivePrefDialog.jsm:270:7
creatNewRule@chrome://awsomeautoarchive/content/autoArchivePrefDialog.jsm:359:22
createRulesBasedOnString@chrome://awsomeautoarchive/content/autoArchivePrefDialog.jsm:378:65
syncFromPerf@chrome://awsomeautoarchive/content/autoArchivePrefDialog.jsm:388:5
anonymous@chrome://messenger/content/preferences/preferences.xml line 440 > Function:3:8
setElementValue@chrome://messenger/content/preferences/preferences.xml:442:20
onxblpaneload@chrome://messenger/content/preferences/preferences.xml:1337:13
_fireEvent@chrome://messenger/content/preferences/preferences.xml:777:27
prefwindow_XBL_Constructor@chrome://messenger/content/preferences/preferences.xml:660:13
  autoArchivePrefDialog.jsm:103:1
row is undefined  autoArchivePrefDialog.jsm:287
StuporDaveOsborne commented 5 years ago

Same as above but Win 7:

NS_ERROR_FAILURE: Couldn't decrypt string crypto-SDR.js:179 TypeError: Argument 1 of Document.getAnonymousElementByAttribute is not an object.[Learn More] accountcolors-3panewindow.js:1156:13 TypeError: Argument 1 of Document.getAnonymousElementByAttribute is not an object.[Learn More] accountcolors-3panewindow.js:1156:13 TypeError: Argument 1 of Document.getAnonymousElementByAttribute is not an object.[Learn More] accountcolors-3panewindow.js:1156:13 uncaught exception: 2147746065 autosync.js:206:13 Caught Exception TypeError: msgFolder is null updateFolderStyle@chrome://awsomeautoarchive/content/autoArchivePrefDialog.jsm:103:1 initFolderPick@chrome://awsomeautoarchive/content/autoArchivePrefDialog.jsm:147:5 creatOneRule@chrome://awsomeautoarchive/content/autoArchivePrefDialog.jsm:270:7 creatNewRule@chrome://awsomeautoarchive/content/autoArchivePrefDialog.jsm:359:22 createRulesBasedOnString@chrome://awsomeautoarchive/content/autoArchivePrefDialog.jsm:378:65 syncFromPerf@chrome://awsomeautoarchive/content/autoArchivePrefDialog.jsm:388:5 anonymous@chrome://messenger/content/preferences/preferences.xml line 440 > Function:3:8 setElementValue@chrome://messenger/content/preferences/preferences.xml:442:20 updateElements@chrome://messenger/content/preferences/preferences.xml:562:13 _constructAfterChildren@chrome://messenger/content/preferences/preferences.xml:31:9 preference_XBL_Constructor@chrome://messenger/content/preferences/preferences.xml:169:11 autoArchivePrefDialog.jsm:103:1 Caught Exception TypeError: msgFolder is null updateFolderStyle@chrome://awsomeautoarchive/content/autoArchivePrefDialog.jsm:103:1 initFolderPick@chrome://awsomeautoarchive/content/autoArchivePrefDialog.jsm:147:5 creatOneRule@chrome://awsomeautoarchive/content/autoArchivePrefDialog.jsm:270:7 creatNewRule@chrome://awsomeautoarchive/content/autoArchivePrefDialog.jsm:359:22 createRulesBasedOnString@chrome://awsomeautoarchive/content/autoArchivePrefDialog.jsm:378:65 syncFromPerf@chrome://awsomeautoarchive/content/autoArchivePrefDialog.jsm:388:5 anonymous@chrome://messenger/content/preferences/preferences.xml line 440 > Function:3:8 setElementValue@chrome://messenger/content/preferences/preferences.xml:442:20 onxblpaneload@chrome://messenger/content/preferences/preferences.xml:1337:13 _fireEvent@chrome://messenger/content/preferences/preferences.xml:777:27 prefwindow_XBL_Constructor@chrome://messenger/content/preferences/preferences.xml:660:13 autoArchivePrefDialog.jsm:103:1 Caught Exception TypeError: msgFolder is null updateFolderStyle@chrome://awsomeautoarchive/content/autoArchivePrefDialog.jsm:103:1 initFolderPick@chrome://awsomeautoarchive/content/autoArchivePrefDialog.jsm:147:5 creatOneRule@chrome://awsomeautoarchive/content/autoArchivePrefDialog.jsm:270:7 creatNewRule@chrome://awsomeautoarchive/content/autoArchivePrefDialog.jsm:359:22 oncommand@chrome://awsomeautoarchive/content/autoArchivePrefDialog.xul:1:1 autoArchivePrefDialog.jsm:103:1 Caught Exception TypeError: msgFolder is null updateFolderStyle@chrome://awsomeautoarchive/content/autoArchivePrefDialog.jsm:103:1 initFolderPick@chrome://awsomeautoarchive/content/autoArchivePrefDialog.jsm:147:5 creatOneRule@chrome://awsomeautoarchive/content/autoArchivePrefDialog.jsm:270:7 creatNewRule@chrome://awsomeautoarchive/content/autoArchivePrefDialog.jsm:359:22 createRulesBasedOnString@chrome://awsomeautoarchive/content/autoArchivePrefDialog.jsm:378:65 syncFromPerf@chrome://awsomeautoarchive/content/autoArchivePrefDialog.jsm:388:5 anonymous@chrome://messenger/content/preferences/preferences.xml line 440 > Function:3:8 setElementValue@chrome://messenger/content/preferences/preferences.xml:442:20 updateElements@chrome://messenger/content/preferences/preferences.xml:562:13 _constructAfterChildren@chrome://messenger/content/preferences/preferences.xml:31:9 preference_XBL_Constructor@chrome://messenger/content/preferences/preferences.xml:169:11 autoArchivePrefDialog.jsm:103:1 row is undefined autoArchivePrefDialog.jsm:287 Caught Exception TypeError: msgFolder is null updateFolderStyle@chrome://awsomeautoarchive/content/autoArchivePrefDialog.jsm:103:1 initFolderPick@chrome://awsomeautoarchive/content/autoArchivePrefDialog.jsm:147:5 creatOneRule@chrome://awsomeautoarchive/content/autoArchivePrefDialog.jsm:270:7 creatNewRule@chrome://awsomeautoarchive/content/autoArchivePrefDialog.jsm:359:22 createRulesBasedOnString@chrome://awsomeautoarchive/content/autoArchivePrefDialog.jsm:378:65 syncFromPerf@chrome://awsomeautoarchive/content/autoArchivePrefDialog.jsm:388:5 anonymous@chrome://messenger/content/preferences/preferences.xml line 440 > Function:3:8 setElementValue@chrome://messenger/content/preferences/preferences.xml:442:20 onxblpaneload@chrome://messenger/content/preferences/preferences.xml:1337:13 _fireEvent@chrome://messenger/content/preferences/preferences.xml:777:27 prefwindow_XBL_Constructor@chrome://messenger/content/preferences/preferences.xml:660:13 autoArchivePrefDialog.jsm:103:1 row is undefined autoArchivePrefDialog.jsm:287 Content Security Policy: Ignoring ‘x-frame-options’ because of ‘frame-ancestors’ directive. (unknown) Caught Exception TypeError: msgFolder is null updateFolderStyle@chrome://awsomeautoarchive/content/autoArchivePrefDialog.jsm:103:1 initFolderPick@chrome://awsomeautoarchive/content/autoArchivePrefDialog.jsm:147:5 creatOneRule@chrome://awsomeautoarchive/content/autoArchivePrefDialog.jsm:270:7 creatNewRule@chrome://awsomeautoarchive/content/autoArchivePrefDialog.jsm:359:22 oncommand@chrome://awsomeautoarchive/content/autoArchivePrefDialog.xul:1:1 autoArchivePrefDialog.jsm:103:1 TypeError: row is undefined[Learn More] autoArchivePrefDialog.jsm:287:5

Nono-m0le commented 5 years ago

I guess I've the same here on Windows 10 / TB 60.6.0 (the add-ons is currently not usable/not working):

Awesome Auto Archive startup...
While creating services from category 'profile-after-change', could not create service for entry 'calendar-backend-loader', contract ID 'service,@mozilla.org/calendar/backend-loader;1'
Use of Mutation Events is deprecated. Use MutationObserver instead.  calendar-widgets.xml:512:20
TypeError: this.parentNode is null[Learn More]  tree.xml:1285:9
TypeError: this._parentMenupopup is null[Learn More]  mailWidgets.xml:2728:9
nsMsgDBFolder::GetPrettiestName is deprecated and will be removed soon. (unknown)

nsMsgDBFolder::GetPrettiestName is deprecated and will be removed soon. (unknown)
keyRing.jsm: loadKeyList: error
  (unknown)
nsMsgDBFolder::GetPrettiestName is deprecated and will be removed soon. (unknown)

Caught Exception TypeError: msgFolder is null
updateFolderStyle@chrome://awsomeautoarchive/content/autoArchivePrefDialog.jsm:103:1
initFolderPick@chrome://awsomeautoarchive/content/autoArchivePrefDialog.jsm:147:5
creatOneRule@chrome://awsomeautoarchive/content/autoArchivePrefDialog.jsm:270:7
creatNewRule@chrome://awsomeautoarchive/content/autoArchivePrefDialog.jsm:359:22
createRulesBasedOnString@chrome://awsomeautoarchive/content/autoArchivePrefDialog.jsm:378:65
syncFromPerf@chrome://awsomeautoarchive/content/autoArchivePrefDialog.jsm:388:5
anonymous@chrome://messenger/content/preferences/preferences.xml line 440 > Function:3:8
setElementValue@chrome://messenger/content/preferences/preferences.xml:442:20
updateElements@chrome://messenger/content/preferences/preferences.xml:562:13
_constructAfterChildren@chrome://messenger/content/preferences/preferences.xml:31:9
preference_XBL_Constructor@chrome://messenger/content/preferences/preferences.xml:169:11
openAddonPrefs@chrome://messenger/content/mailCore.js:511:5
oncommand@chrome://messenger/content/messenger.xul:1:1
  autoArchivePrefDialog.jsm:103:1
row is undefined  autoArchivePrefDialog.jsm:287
Caught Exception TypeError: msgFolder is null
updateFolderStyle@chrome://awsomeautoarchive/content/autoArchivePrefDialog.jsm:103:1
initFolderPick@chrome://awsomeautoarchive/content/autoArchivePrefDialog.jsm:147:5
creatOneRule@chrome://awsomeautoarchive/content/autoArchivePrefDialog.jsm:270:7
creatNewRule@chrome://awsomeautoarchive/content/autoArchivePrefDialog.jsm:359:22
createRulesBasedOnString@chrome://awsomeautoarchive/content/autoArchivePrefDialog.jsm:378:65
syncFromPerf@chrome://awsomeautoarchive/content/autoArchivePrefDialog.jsm:388:5
anonymous@chrome://messenger/content/preferences/preferences.xml line 440 > Function:3:8
setElementValue@chrome://messenger/content/preferences/preferences.xml:442:20
onxblpaneload@chrome://messenger/content/preferences/preferences.xml:1337:13
_fireEvent@chrome://messenger/content/preferences/preferences.xml:777:27
prefwindow_XBL_Constructor@chrome://messenger/content/preferences/preferences.xml:660:13
openAddonPrefs@chrome://messenger/content/mailCore.js:511:5
oncommand@chrome://messenger/content/messenger.xul:1:1
  autoArchivePrefDialog.jsm:103:1
row is undefined
sphh commented 5 years ago

I can confirm @jkavery finding for Thunderbird 60.5.1 (Linux, 64 bit). The drop-down box for the Destination Folder remains empty. I should add that I use four IMAP servers and the default local mail storage.

Caught Exception TypeError: msgFolder is null
updateFolderStyle@chrome://awsomeautoarchive/content/autoArchivePrefDialog.jsm:103:1
initFolderPick@chrome://awsomeautoarchive/content/autoArchivePrefDialog.jsm:147:5
creatOneRule@chrome://awsomeautoarchive/content/autoArchivePrefDialog.jsm:270:7
creatNewRule@chrome://awsomeautoarchive/content/autoArchivePrefDialog.jsm:359:22
createRulesBasedOnString@chrome://awsomeautoarchive/content/autoArchivePrefDialog.jsm:378:65
syncFromPerf@chrome://awsomeautoarchive/content/autoArchivePrefDialog.jsm:388:5
anonymous@chrome://messenger/content/preferences/preferences.xml line 440 > Function:3:8
setElementValue@chrome://messenger/content/preferences/preferences.xml:442:20
onxblpaneload@chrome://messenger/content/preferences/preferences.xml:1337:13
_fireEvent@chrome://messenger/content/preferences/preferences.xml:777:27
prefwindow_XBL_Constructor@chrome://messenger/content/preferences/preferences.xml:660:13
  autoArchivePrefDialog.jsm:103:1
GonzAR commented 5 years ago

Same here on Windows 10 / TB 60.6.1 (the add-on is currently not usable)


Caught Exception TypeError: msgFolder is null updateFolderStyle@chrome://awsomeautoarchive/content/autoArchivePrefDialog.jsm:103:1 initFolderPick@chrome://awsomeautoarchive/content/autoArchivePrefDialog.jsm:147:5 creatOneRule@chrome://awsomeautoarchive/content/autoArchivePrefDialog.jsm:270:7 creatNewRule@chrome://awsomeautoarchive/content/autoArchivePrefDialog.jsm:359:22 createRulesBasedOnString@chrome://awsomeautoarchive/content/autoArchivePrefDialog.jsm:378:65 syncFromPerf@chrome://awsomeautoarchive/content/autoArchivePrefDialog.jsm:388:5 anonymous@chrome://messenger/content/preferences/preferences.xml line 440 > Function:3:8 setElementValue@chrome://messenger/content/preferences/preferences.xml:442:20 onxblpaneload@chrome://messenger/content/preferences/preferences.xml:1337:13 _fireEvent@chrome://messenger/content/preferences/preferences.xml:777:27 prefwindow_XBL_Constructor@chrome://messenger/content/preferences/preferences.xml:660:13 openAddonPrefs@chrome://messenger/content/mailCore.js:511:5 oncommand@chrome://messenger/content/messenger.xul:1:1 autoArchivePrefDialog.jsm:103:1

row is undefined autoArchivePrefDialog.jsm:287 checkFocus chrome://awsomeautoarchive/content/autoArchivePrefDialog.jsm:287:5 creatNewRule chrome://awsomeautoarchive/content/autoArchivePrefDialog.jsm:359:5 createRulesBasedOnString chrome://awsomeautoarchive/content/autoArchivePrefDialog.jsm:378:65 syncFromPerf chrome://awsomeautoarchive/content/autoArchivePrefDialog.jsm:388:5 anonymous chrome://messenger/content/preferences/preferences.xml%20line%20440%20%3E%20Function:3:8 setElementValue chrome://messenger/content/preferences/preferences.xml:442:20 onxblpaneload chrome://messenger/content/preferences/preferences.xml:1337:13 _fireEvent chrome://messenger/content/preferences/preferences.xml:777:27 prefwindow_XBL_Constructor chrome://messenger/content/preferences/preferences.xml:660:13 openAddonPrefs chrome://messenger/content/mailCore.js:511:5 oncommand chrome://messenger/content/messenger.xul:1:1

GDowning14 commented 5 years ago

Also occuring on Windows 7 TB 60.6.1. Have 4 IMAP accounts (3 external internet and one internal intranet). After the message, am unable to configure archiving as destination folder dropdown is not populated. Add-on is not usable.

Caught Exception TypeError: msgFolder is null updateFolderStyle@chrome://awsomeautoarchive/content/autoArchivePrefDialog.jsm:103:1 initFolderPick@chrome://awsomeautoarchive/content/autoArchivePrefDialog.jsm:147:5 creatOneRule@chrome://awsomeautoarchive/content/autoArchivePrefDialog.jsm:270:7 creatNewRule@chrome://awsomeautoarchive/content/autoArchivePrefDialog.jsm:359:22 createRulesBasedOnString@chrome://awsomeautoarchive/content/autoArchivePrefDialog.jsm:378:65 syncFromPerf@chrome://awsomeautoarchive/content/autoArchivePrefDialog.jsm:388:5 anonymous@chrome://messenger/content/preferences/preferences.xml line 440 > Function:3:8 setElementValue@chrome://messenger/content/preferences/preferences.xml:442:20 onxblpaneload@chrome://messenger/content/preferences/preferences.xml:1337:13 _fireEvent@chrome://messenger/content/preferences/preferences.xml:777:27 prefwindow_XBL_Constructor@chrome://messenger/content/preferences/preferences.xml:660:13 openOption@chrome://awsomeautoarchive/content/autoArchive.jsm:184:5 createPopup/<@chrome://awsomeautoarchive/content/autoArchive.jsm:231:82

blitzdesigner commented 5 years ago

is this project still maintained?

jkavery commented 5 years ago

I can confirm @jkavery finding for Thunderbird 60.5.1 (Linux, 64 bit). The drop-down box for the Destination Folder remains empty. I should add that I use four IMAP servers and the default local mail storage.

To work around the problem of there not being a Destination Folder drop-down when adding a new rule, add one or more new rules, filling in everything except the Destination Folder(s). Then quit and restart Thunderbird and edit the options again. The Destination Folder(s) of the new rules will now have drop-downs which can be used.

vbsql7 commented 5 years ago

I loaded this app specifically to use the Archive function -- and to AVOID having to set a destination folder. Using the Archive button in TB automatically selects a folder for you, based on the current yet. FiltaQuilla and other filter add-ons require you to hard-code a folder into your archive action, which is something you have to then maintain every year.

This display bug, while annoying, doesn't seem to affect the functionality. It's just a reminder that the logic for checking Archive parameters needs to be cleaned up.

hainesr commented 5 years ago

This display bug, while annoying, doesn't seem to affect the functionality. It's just a reminder that the logic for checking Archive parameters needs to be cleaned up.

This matches my experience.