Re: notification when you receive a mail
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
- Kaustubh Jagtap