This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How do i store a folder of emails locally?  RSS feed

 
Dave Turner
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Must i code my own means of keeping sent/received emails, or is there some way of using the API?
 
Rishi Tyagi
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Try to use java mail APi. There you can find the methods to achieve your goal.
 
Maciej Kolodziej
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!