I added MessageCountListener to inbox by using javamail API... but the problem i am facing is after one callback program
is terminating, it is not listing to next added messages.. can you please tell me the solution for resolving this problem..??
my expectation is that, the listener should count or listen each and every messages added to the inbox..!!
As like you said after idle() method it has been continuing for new messages to arrival.. after arrival of new messages
it is successfully getting new messages.. but the problem is if i operate on that message as mentioned in code message.getSubject() it is failing
to get that message and it is terminating from the application.. please give me the solution for this..