File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other JSE/JEE APIs and the fly likes How do i store a folder of emails locally? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Reply Bookmark "How do i store a folder of emails locally?" Watch "How do i store a folder of emails locally?" New topic
Author

How do i store a folder of emails locally?

Dave Turner
Ranch Hand

Joined: Mar 13, 2001
Posts: 60
Must i code my own means of keeping sent/received emails, or is there some way of using the API?
Rishi Tyagi
Ranch Hand

Joined: Feb 14, 2002
Posts: 99
Hi,
Try to use java mail APi. There you can find the methods to achieve your goal.
Maciej Kolodziej
Greenhorn

Joined: Feb 11, 2002
Posts: 26
Hi,
As far as I know, JavaMail doesn't have classes for storing email messages locally. Once I tried to write email client in Java and also encountered this problem.
I myself solved it by writing my own message store based on java.io.RandomAccessFile as message file and java.util.Properites, writen to a file, as an index file. The whole thing also handled multiple mail accounts, mail folders and more. This store accepted Message objects from JavaMail. You can try to do the same.
Later I discovered, that there are components written by some company (don't know if they're free) which do exactly the same while keeping to JavaMail folders API. Unfortunately I don't remember where I found it, but search some third parties links on JavaMail web page.
[ February 14, 2002: Message edited by: Maciej Kolodziej ]

MK
 
IntelliJ Java IDE
 
subject: How do i store a folder of emails locally?
 
Threads others viewed
More Java jobs then Java programmers!
HOTmail
two months passed
Paging from a java application
Send popup from Java
developer file tools