dcsimg
disconnected support
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   John_Zukowski
Posted On:   Sunday, September 30, 2001 03:59 PM

Does the JavaMail API provided disconnected support?

Re: disconnected support

Posted By:   allen_petersen  
Posted On:   Tuesday, December 11, 2001 04:18 PM

JavaMail provides disconnected support for both IMAP and POP3 in a similar fashion: access to the messages on the mail server is provided, as is the ability to identify different instances of a single message across separate connections to the mail store (using the message's UID). You can also get providers, such as the ones for mbox and mh, which let you store messages on local filesystems.



That's all that JavaMail itself gives you. When it comes to other operations, such as copying messages from the server to the local machine and synchronizing the server and local copies of the mailboxes, the work is left to the applications.



The same may be said for composing messages offline. You can use JavaMail to create the Message object that will be sent. If, however, you want to save said message to disk to be sent later, then your application will have to do so explicitly. If you want all of the queued messages to be sent automatically as soon as your network connection is back up, then you'll have to write the code that gets your messages from wherever they've been stored and calls send() on them, too.



Given this information, the question of whether or not the JavaMail API actually provides disconnected support is up to the interpretation of the individual. :)

Re: disconnected support

Posted By:   Jens_Dibbern  
Posted On:   Friday, October 12, 2001 05:07 AM

AFAIK it does only provide disconnected POP3 support. If you want to compose new messages offline, perhaps you could find useful classes at http://www.mozilla.org/projects/grendel/arch.html
About | Sitemap | Contact