Open Bug 1726379 Opened 3 years ago Updated 3 years ago

per folder setting to enable IDLE

Categories

(MailNews Core :: Networking: IMAP, enhancement)

Thunderbird 91
enhancement

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: bughit.github, Assigned: gds)

References

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36

Steps to reproduce:

According to Bug 1725914, IDLE is not expected to work for non-inbox folders:

comment #3

Imap IDLE (immediate notification) only works for Inbox and other folders that are in the imap SELECTed state. So unless you have recently opened one of the non-Inbox folders that you are filtering mail to, there is no certainty that that new mail will be detected in them immediately. If a folder is not in imap SELECTed state, new mail can only be detected on the timed interval when the folder right-click property is set to be checked for new mail.

Tb, by default, keeps Inbox imap SELECTed and 4 of the most recently open folders. So other than Inbox, you can't really configure a folder to always immediately notify new mail via imap IDLE.

If so, there should be a per folder setting to enable IDLE

See Also: → 1725914

Ok, I worked on this a few years ago. I don't remember the details but I think I ran into some problems. I don't think I ever filed an enhancement bug for this. I think this allows any imap folder that is set to "check this folder for new message" to also mean use IDLE for this folder and don't release it for other purposes. So here's the WIP diff. I may attempt to revive this if nothing else supersede.
P/S: Of course the attached diff it totally rotten and won't merge and is attached only as a possible re-starting point.

Assignee: nobody → gds

There was also a bug in the mozilla code for linux that caused problem with my attempted fix for this bug. After searching, I found it here: bug 758848 comment 11.

Depends on: 758848
See Also: → 758848
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: