We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Need to understand what "Subscribe" does on .network

I don't understand the iMAP subscribe method. Does this fire the async method when a new mail arrives for the inbox or folder on the server? Ther is no documentation on this method.

I would like to implment a function which gets called whenever a new mail arrives in the user's inbox.

This message was posted using Aspose.Live 2 Forum


Thanks for considering Aspose.

The SelectFolder() and SubscribeFolder() methods need to be called before performing any operations like adding new message, list messages etc. It does not raise any event.

To get notified of new emails that arrive in the Inbox, you may connect to the Imap server, select Inbox folder and call ListMessages() method. This could be implemented in an application that uses a Timer control’s tick event and setting the interval of Timer to 5 minutes or so.

We are in process of improving the API documentation by adding more descriptions and code examples. Sorry for the inconvenience.