Forums Register Login

How do i store a folder of emails locally?

+Pie Number of slices to send: Send
Must i code my own means of keeping sent/received emails, or is there some way of using the API?
+Pie Number of slices to send: Send
Hi,
Try to use java mail APi. There you can find the methods to achieve your goal.
+Pie Number of slices to send: Send
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 ]
It will give me the powers of the gods. Not bad for a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 893 times.
Similar Threads
two months passed
Paging from a java application
More Java jobs then Java programmers!
HOTmail
Send popup from Java
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 19:52:57.