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
posted
0
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
posted
0
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
subject: How do i store a folder of emails locally?