dcsimg
Error when accessing the downloaded imap messages stored in -!_NEWLINE_!Message[]msgs
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Thursday, February 28, 2002 02:35 PM

I am writing an Imap email client.
I download all the messages from the inbox folder on the imap server to a static Message msg[]; Then the connection to the server is closed.

When I access msg[] to retrieve a particular message, the program keeps crashing as soon as it executes the following command:

if(msg.isMimeType("text/plain"))

Does anybody have any solution or advice? Does the session have to remain open when accessing msg[].

Re: Error when accessing the downloaded imap messages stored in -!_NEWLINE_!Message[]msgs

Posted By:   John_Zukowski  
Posted On:   Thursday, February 28, 2002 09:13 PM

The messages are downloaded lazily. Until you access the actual message content, it isn't downloaded.


As far as your program crashing, it sounds like you aren't handling an exception properly.

About | Sitemap | Contact