Skip to content

quickFilters Filter assistant mode is not detected when configured to automatically start with Thunderbird #397

Closed

Description

@PotatoCarl

Hi, when using QF 6.0pre332 and QuickFilter 6.1.1 with TB115 and I move a message via the QuickMove button of QuickFolder to a folder, the Filter dialog is not opening (and no filter is created).
When moving directly to a filder in the folder view of TB, it works.

Activity

  1. RealRaven2000 commented on Aug 1, 2023

    @RealRaven2000
    Owner

    Thanks for reporting, can you please check the error console log (open with Ctrl+Shift+J or Thunderbird tools » ) to see if there are any new errors logged after selecting the target folder on QuickFolders?

    You can copy the debug log (as text please, no screenshot) via right-click » Copy all Messages :

    image

    Error console settings should be set up like this to be most useful:

    image

    I can give you additional debug settings for quickFilters for more detail later, which will be configured on quickFilters Settings » Advanced, but let's first see if there is anything obvious...

    image

  2. PotatoCarl commented on Aug 1, 2023

    @PotatoCarl
    Author

    QuickFolders 12:22:52.504 [11016 ms]
    dragSession =
    XPCWrappedNative_NoHelper { QueryInterface: QueryInterface(), invokeDragSession: invokeDragSession(), getCurrentSession: getCurrentSession(), startDragSession: startDragSession(), startDragSessionForTests: startDragSessionForTests(), endDragSession: endDragSession(), suppress: suppress(), unsuppress: unsuppress(), DRAGDROP_ACTION_NONE: 0, DRAGDROP_ACTION_COPY: 1, … }
    quickfolders-util.js:1286:13
    QuickFolders 12:22:52.506 [2 ms]
    toggleMoveModeSearchBox(true) quickfolders-util.js:1286:13
    QuickFolders 12:22:52.506 [0 ms]
    QuickFolders.quickMove.update()
    isActive = true quickfolders-util.js:1286:13
    QuickFolders 12:22:52.507 [1 ms]
    toggleMoveModeSearchBox(true) quickfolders-util.js:1286:13
    QuickFolders 12:22:52.507 [0 ms]
    toggleMoveModeSearchBox(true) quickfolders-util.js:1286:13
    QuickFolders 12:22:53.531 [1024 ms]
    findFolder (e) quickfolders-util.js:1286:13
    QuickFolders 12:22:53.716 [185 ms]
    findFolder (ec) quickfolders-util.js:1286:13
    QuickFolders 12:22:53.832 [116 ms]
    findFolder (eco) quickfolders-util.js:1286:13
    QuickFolders 12:22:54.10 [178 ms]
    findFolder (ecop) quickfolders-util.js:1286:13
    QuickFolders 12:22:54.182 [172 ms]
    findFolder (ecopo) quickfolders-util.js:1286:13
    QuickFolders 12:22:54.314 [132 ms]
    findFolder (ecopox) quickfolders-util.js:1286:13
    QuickFolders 12:22:54.814 [500 ms]
    findFolder (ecopox) quickfolders-util.js:1286:13
    QuickFolders 12:22:55.628 [814 ms]
    selectFound - [object XULCommandEvent] quickfolders-util.js:1286:13
    QuickFolders 12:22:55.629 [1 ms]
    moveMessages with readStatus = 0 quickfolders-util.js:1286:13
    QuickFolders 12:22:55.652 [23 ms]
    util.touch(Ecopox)
    1690885375
    1/8 12:22:55 quickfolders-util.js:1286:13
    msgsMoveCopyCompleted()

    Object { isMoved: true, aSrcMsgs: (1) […], targetFolder: XPCWrappedNative_NoHelper, aDestMsgs: (1) […] }
    quickFilters.js:1771:15
    quickFilters 12:22:55.654 [568819 ms]
    New assistant mode disabled, msgsMoveCopyCompleted does not invoke filter assistant.
    QuickFolders 12:22:55.741 [89 ms]
    util.touch(Ecopox)
    1690885375
    1/8 12:22:55 quickfolders-util.js:1286:13
    QuickFolders 12:22:55.742 [1 ms]
    QuickFolders.quickMove.update()
    isActive = false quickfolders-util.js:1286:13
    QuickFolders 12:22:55.743 [1 ms]
    toggleMoveModeSearchBox(false) quickfolders-util.js:1286:13
    [JavaScript Warning: "findFolder (false, null) failed.
    threadPane is null" {file: "chrome://quickfolders/content/quickfolders-interface.js" line: 5491 column: 0 source: "findFolder
    chrome://quickfolders/content/quickfolders-interface.js:5491:9
    update@chrome://quickfolders/content/quickfolders-quickMove.js:382:8
    resetList@chrome://quickfolders/content/quickfolders-quickMove.js:246:10
    execute@chrome://quickfolders/content/quickfolders-quickMove.js:206:9
    "}] quickfolders-util.js:1312:15
    QuickFolders 12:22:55.744 [1 ms]
    QuickFolders.quickMove.update()
    isActive = false quickfolders-util.js:1286:13
    QuickFolders 12:22:55.744 [0 ms]
    toggleMoveModeSearchBox(false) quickfolders-util.js:1286:13
    [JavaScript Warning: "findFolder (false, null) failed.
    threadPane is null" {file: "chrome://quickfolders/content/quickfolders-interface.js" line: 5491 column: 0 source: "findFolder
    chrome://quickfolders/content/quickfolders-interface.js:5491:9
    update@chrome://quickfolders/content/quickfolders-quickMove.js:382:8
    execute@chrome://quickfolders/content/quickfolders-quickMove.js:207:9
    "}] quickfolders-util.js:1312:15
    QuickFolders 12:22:56.550 [806 ms]
    util.touch(Ecopox)
    1690885376
    1/8 12:22:56 quickfolders-util.js:1286:13

  3. changed the title [-]Filter Assistant not Working with QuickFolders/TB 115[/-] [+]Filter Assistant not Working with QuickFolders quickMove function (TB 115)[/+] on Aug 1, 2023
  4. self-assigned this
    on Aug 1, 2023
  5. RealRaven2000 commented on Aug 1, 2023

    @RealRaven2000
    Owner

    thanks for the log. are you in a single message tab?

  6. PotatoCarl commented on Aug 1, 2023

    @PotatoCarl
    Author

    No so sure what you mean. I have the old 3way view open, folder tree, contents and (selected) email.

  7. RealRaven2000 commented on Aug 1, 2023

    @RealRaven2000
    Owner

    No so sure what you mean. I have the old 3way view open, folder tree, contents and (selected) email.

    ok, single message tab happens when you open a mail in a new tab (via double click). There is an error thrown about missing thread pane, which would indicate that the list of messages (on top of the mail preview) is hidden. To avoid the error and test with something that is closer to the latest source code can you please install the version below (6.1 prerelease 34) - the preview you used is behind quite a bit.

    QuickFolders-mx-6.1pre34.zip

    I will do some more testing in the meantime... however, I don't see any specific error that I can reproduce right now.

  8. PotatoCarl commented on Aug 1, 2023

    @PotatoCarl
    Author

    No change.
    The list of messages is displayed quite well.

  9. PotatoCarl commented on Aug 17, 2023

    @PotatoCarl
    Author

    Hi
    After Upgrade to QuickFilter 6.2, the QuickMove function does not come up with the filter dialog when sorting from a subfolder anymore. Worked with 6.1.1pre11

  10. PotatoCarl commented on Aug 17, 2023

    @PotatoCarl
    Author

    Sorry does not work when 1st time involved, works with 2. time...

  11. PotatoCarl commented on Aug 21, 2023

    @PotatoCarl
    Author

    Does not work with 6.2 anymore... Not first, not second time (when moving to the QuickFolder Quickjump button with 6.1.2pre11).
    Or Moving with The Shortkey.

  12. RealRaven2000 commented on Aug 21, 2023

    @RealRaven2000
    Owner

    Does not work with 6.2 anymore... Not first, not second time (when moving to the QuickFolder Quickjump button with 6.1.2pre11). Or Moving with The Shortkey.

    Sorry can you be more specific, I think what you are saying is - quickFilters 6.2 + QF 6.1.2pre11; you are using the quickMove function and selecting a suggested menu item directly underneath the button? Or a in a child folder from there?

    I am asking again because it works for me. If you get any messages in error console after selecting the folder from the menu, I need to see them please.

  13. RealRaven2000 commented on Aug 21, 2023

    @RealRaven2000
    Owner

    Just in case, here is the very latest version of QuickFolders (6.1.2 pre 24):

    QuickFolders-mx-6.1.2pre24.zip

  14. 7 remaining items

  15. RealRaven2000 commented on Aug 29, 2023

    @RealRaven2000
    Owner

    I am investigating this now ; there is a global flag in QuickFolders called QuickFolders.FilterWorker.FilterMode - once this is set to true (via a QuickFolders function toggleFilterMode() - this is when you use the QF interface, e.g. the QuickFolders tools menu to toggle filter assisted mode):

    image

    However when you use the quickFilters interface and call its own toggle_FilterMode() function it will try to also flick the switch for QuickFolders:

        // If QuickFolders is installed, we should also invoke its filter mode
        if (window.QuickFolders) {
          let QF = window.QuickFolders,
              QFwork = QF.FilterWorker ? QF.FilterWorker : QF.Filter;
          // we cannot supress the notification from QuickFolders
          // without adding code in it!
          if (QFwork.FilterMode != active) {// prevent recursion!
            QFwork.toggle_FilterMode ?
              QFwork.toggle_FilterMode(active) :
              QFwork.toggleFilterMode(active);  // (active, silent) !!!
          }
    
          if (!silent)
            removeOldNotification(notifyBox, active, 'quickfolders-filter');
        }

    my theory is that this may not work if QuickFolders hasn't been loaded on startup and quickFilters was loaded beforehand. This is a little hard to test, because I have no influence on the loading order and cannot debug on startup either. But there must be a way to work around this...

  16. RealRaven2000 commented on Aug 29, 2023

    @RealRaven2000
    Owner

    Ok, looks like I am lucky already. We can see in the interface that quickFilters has (automatically) toggled its mode, but QuickFolders didn't get the message and still shows the wrong icon in its tools menu:

    image

    So it seems quickFilters didn't "see" QF and so couldn't set its assistant mode. I think the easiest fix would be for QuickFolders to look at the (autostart) preference of quickFilters in legacy prefs (about:config). It should then check whether quickFIlters is actually running and has set its own FilterMode=true in the meantime, and then set its own FilterMode accordingly...

  17. PotatoCarl commented on Aug 29, 2023

    @PotatoCarl
    Author

    Sounds like a plan...

  18. RealRaven2000 commented on Aug 29, 2023

    @RealRaven2000
    Owner

    Ok, here is a test version with a quickfix. I added the following code to the QuickFolders initDelayed() function:

        if (prefs.getFiltersBoolPref("autoStart")) {
          // quickFilters started before QF and automatically started assistant mode
          if (window.quickFilters && !QuickFolders.FilterWorker.FilterMode) {
            if (window.quickFilters.Util.AssistantActive) {
              QuickFolders.FilterWorker.toggle_FilterMode(true);
            }
          }
        }

    I have to be very careful here because I don't want it to throw an exception in case quickFilters is not installed or deactivated.
    After setting the flag and restarting Tb, it looks like this:

    image

    Here is the test version:

    QuickFolders-mx-6.2pre55.zip


    (as usual) to test the version above, download the zip file, drag into Thunderbird Add-ons Manager, do not extract contents or if won't install.

  19. RealRaven2000 commented on Aug 29, 2023

    @RealRaven2000
    Owner

    I think we need to move this to the QuickFolders issue list, because I had to fix it from that side... I will try to figure out how to do that. or maybe I will just open a new issue over there...

  20. changed the title [-]Filter Assistant Auto-start not working with QuickFolders quickMove function (TB 115)[/-] [+]quickFilters assistant mode is not detected if set to "automatically start" with Thunderbird[/+] on Aug 29, 2023
  21. changed the title [-]quickFilters assistant mode is not detected if set to "automatically start" with Thunderbird[/-] [+]quickFilters Filter assistant mode is not detected when configured to automatically start with Thunderbird[/+] on Aug 29, 2023
  22. RealRaven2000 commented on Aug 29, 2023

    @RealRaven2000
    Owner

    There is still a problem if we disable and then enable quickFilters (from Add-ons Manager) the filter assistant mode at least looks not enabled. It looks sort of the opposite of the initial situation:

    image

    I also see the following error caused by QuickFolders in console:

    image

  23. PotatoCarl commented on Aug 29, 2023

    @PotatoCarl
    Author

    I see the same here: Disabling the QucikFilter in Addons and then turning it back on the filter assistant is off while QuickFolder thinks it is on...

  24. RealRaven2000 commented on Aug 29, 2023

    @RealRaven2000
    Owner

    I see the same here: Disabling the quickFilters in Addons and then turning it back on the filter assistant is off while QuickFolder thinks it is on...

    I may have to fix that particular one on the quickFilters side... but I want to deal with the exception above at least here on QuickFolders. Here is a new version:

    QuickFolders-mx-6.2pre60.zip

    As regards the weird behavior of the main quickFilters button not updating when we update the Add-on from extension manager I have raised [issue 210] over on the quickFilters tracker.

  25. RealRaven2000 commented on Aug 29, 2023

    @RealRaven2000
    Owner

    Removed some unnecessary processing in the tab listener. Hopefully that didn't change any of the other behavior.

    QuickFolders-mx-6.2pre63.zip

    and also uploaded a test version of quickFilters over at [https://github.com/RealRaven2000/quickFilters/issues/210]


    (as usual) to test the version above, download the zip file, drag into Thunderbird Add-ons Manager, do not extract contents or if won't install.

  26. added a commit that references this issue on Aug 30, 2023
  27. RealRaven2000 commented on Sep 2, 2023

    @RealRaven2000
    Owner

    Fixed in 6.2 - Published 30/08/2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions