-
-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
support IMAP IDLE/NOTIFY #18
Comments
I don't have a good use case for this today and don't have enough IMAP experience to understand what you want/need. Can you give me a sample client/server interaction of what you're looking for? I've implemented some support in |
so a sample interaction would look roughly like this for IMAP NOTIFY:
where between the various for IMAP IDLE:
where IDLE works on only one selected folder and NOTIFY for an arbitrary set you specify (with special atoms like "subscribed"). i'd be happy to start hacking on a/some PR(s) as well if you're not against bigger features outside the base IMAP rfc 3501. |
That would be great! Not against extension support, but it might be good if you can lay out your plan in a bit more detail -- I'd like to get a sense of the amount of complexity that you want to add. |
It is pretty easy to get the basics working by adding an |
It sounds to me like you'd want to split the |
supporting server-initiated notifications (standardized keeping one/multiple connections to the server open) using IMAP IDLE or IMAP NOTIFY extensions would be helpful, although it's not a very high priority for me currently.
StateStreams seem to be a good way to keep the client/connection info while iterating over/waiting for notifications. i'm not sure how well timeouts or actively cancelling a running command work with that, or if there's additional code needed
The text was updated successfully, but these errors were encountered: