RealRaven2000 / QuickFolders

Thunderbird Add-on: QuickFolders
http://quickfolders.org/
Other
48 stars 9 forks source link

Thunderbird 122 beta - cannot add new tabs to toolbar #439

Closed RealRaven2000 closed 7 months ago

RealRaven2000 commented 7 months ago

When we drag a new folder to the QuickFolders toolbar, this does not add a new tab. Instead we see the following message in error console:

Uncaught TypeError: MailServices.accounts.FindAccountForServer is not a function
    addFolder chrome://quickfolders/content/quickfolders-model.js:81
    addFolder chrome://quickfolders/content/quickfolders.js:1028
    drop chrome://quickfolders/content/quickfolders.js:1052
    ondrop chrome://messenger/content/messenger.xhtml:1
quickfolders-model.js:81:38
RealRaven2000 commented 7 months ago

In newer versions of Thunderbird this (and other) uppercase function(s) have been converted to camel case. I have modified the code accordingly to be forward compatible.

// pattern to stay compatible with both ESR 115 and 122 beta:
let account = (MailServices.accounts.FindAccountForServer || MailServices.accounts.findAccountForServer)(folder.server).key;

QuickFolders-mx-6.4pre93.zip


...to install the test version, download the zip file and then drag the file into Thunderbird Add-ons Manager (do not extract contents).

RealRaven2000 commented 7 months ago

Fixed in 6.4 released on 04/12/2023