dcsimg
notification when you receive a mail
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   berengere_vuaillat
Posted On:   Monday, July 16, 2001 10:35 AM

Is there something in this API which allow to know that I have received a mail on my mail box ?

Re: notification when you receive a mail

Posted By:   Kaustubh_Jagtap  
Posted On:   Monday, July 16, 2001 11:52 AM

Yes, One can be notified when there is a new mail in the mail box.
This can be done by adding a MessageCountListener onto the folder object.
The MessageCountEvent delivers the new messages. This event is raised when
a new message is added or removed from the mail box
However some folder types may only deliver MessageCountEvents
at certain times or after certain operations
A client may want "poll" the folder by occasionally calling the
getMessageCount or isConnected methods to solicit any
such notifications.

- Kaustubh Jagtap
About | Sitemap | Contact