-
Notifications
You must be signed in to change notification settings - Fork 9
Recent Folders list not updated when moving email using drag and drop #80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I think the more promising approach will be to extend the folder listener function fldListen_OnItemIntPropertyChanged( ), which can be used to monitor a change of the number of total messages. normally I would expect Thunderbird to do that work for me and update the timestamp but let's put in some code to "touch" the folder, in this case. Here is a test version: it's not quite all smiles and roses - the touch function is actually triggered multiple times, not just for the folder that mail was dropped into, but also the originating folder, which may very well happen later - which means the target folder will be listed in second place on the recent folders list. |
So I decided to modify the listener and only update if mails (but also unread messages) have been added; so only if So this basically will update the timestamp for the folder you have moved mails to, but not the folder that you removed it from; this makes sure that the folder that got new mails will be put on the top of the recent folder list (provided Thunderbird doesn't also do something in the meantime that updates another folder timestamp, e.g. downloads new mails from the server or sync the folder). The other thing my guard against "smaller values" does is that it won't constantly update the timestamp while reading a folder (and thus decreasing the unread count) - however if you go to a folder and set a mail as "unread" manually, it will be popped to the top of the recent folders list - is this desired behavior @Iguillau ? |
I did a bit more work on this feature - turns out folders like (Drafts, Trash, Archive, Sent, and Junk) will constantly show up on top. So I am guarding against that in the "touch( ) " function in this new version: hope you can test drive this for a bit |
fixed in 5.1 released on 10/Dec/2020 |
When I drag and drop an email from my inbox to a destination folder (in the folder tree) that is not already in the "recent folders" list, I would expect the destination folder to be added at the top of the "recent folders" list, which is not apparently the case. The destination folder is not added to the "recent folders" list.
(This is with TB 78.5.0 (64-bit) and QuickFolders Pro 5)
Thanks
BR
Laurent
The text was updated successfully, but these errors were encountered: