Implementing IMAP Idle using Rebex in .Net

∥☆過路亽.° 提交于 2019-12-08 07:07:03

问题


I have created a .net mail client application using Rebex library and want to implement something like 'push mail' system and I came to know IMAP allow this which is called as IMAP IDLE, any one having any idea how can I implement this in my application, looking for example.

Thanks


回答1:


Rebex IMAP does support IDLE - use Imap object's CheckForUpdates(int duration) method - this instructs the IMAP session to the IDLE state for the specified amount of miliseconds. Please note that for duration values less than 10 ms, NOOP is used instead of IDLE. With IDLE, you generally want to stay in the IDLE stay for long intervals.



来源:https://stackoverflow.com/questions/8487972/implementing-imap-idle-using-rebex-in-net

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!