Posted By:
Sharona_Feinberg
Posted On:
Thursday, January 24, 2002 06:14 AM
in JavaMail I have a strange behavior which I do not know where it comes from. first I will describe a situation : I have opened a connection to the Mail Server . opened the store and folder - got the messages , and was happy. I via outlook express deleted one of the messages. in my program I could get the header of the message , but when trying to get it's content - I got : "javax.mail.MessagingException: No inputstream from datasource" , instead of a MessageRemoved Exception. this behavior is consistent. so I catch the exception , and continue ...
More>>
in JavaMail I have a strange behavior which I do not know where it comes from.
first I will describe a situation :
I have opened a connection to the Mail Server .
opened the store and folder - got the messages , and was happy.
I via outlook express deleted one of the messages.
in my program I could get the header of the message , but when trying to get it's content -
I got :
"javax.mail.MessagingException: No inputstream from datasource" , instead of a MessageRemoved Exception.
this behavior is consistent.
so I catch the exception , and continue ....
well , I thought that my problems were over ,
now without deleting and with NO consistent behavior ,
after bringing the messages , listing their headers , and so on ,
when trying to get a content of a message I get the same error :
"javax.mail.MessagingException: No inputstream from datasource" , instead of a MessageRemoved Exception.
BUT when trying AGAIN - it success.
why ?
thanks ,
<<Less