Skip to content
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

enter_idle on whole account / support for IMAP NOTIFY #229

Open
unhammer opened this issue Jun 16, 2021 · 2 comments
Open

enter_idle on whole account / support for IMAP NOTIFY #229

unhammer opened this issue Jun 16, 2021 · 2 comments

Comments

@unhammer
Copy link

Is it possible to IDLE-wait on any any mailbox of an account? I know you can idle-wait on the inbox with

while true do
   success = account.Inbox:enter_idle()
   if success then
      os.execute('mbsync -a')
   end
end

but I also get stuff sent to other folders on the server, is there a way to do something like account.AllTheFolders:enter_idle() perhaps there's some concurrency feature like race(account.Inbox.enter_idle(), account.Work.enter_idle(), account.Fun.enter_idle()) ?

@lefcha
Copy link
Owner

lefcha commented Jun 17, 2021

Unfortunately the IMAP IDLE command can only be used on a single mailbox, so something like you describe isn't possible.

It seems that there's the IMAP NOTIFY Extension though, which tries to address these shortcomings as described at the Overview and Rationale section.

This means of course that the server would have to support this extension, and that I would need to add support for the extension to imapfilter...

@unhammer
Copy link
Author

unhammer commented Jun 17, 2021

Feared it might be something like that.

Hm, I use Fastmail which uses Cyrus so server support exists for me … I guess this is a feature request for IMAP NOTIFY support in imapfilter then :)

@unhammer unhammer changed the title enter_idle on whole account? enter_idle on whole account / support for IMAP NOTIFY Jun 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants