Choosing a JavaMail "local store provider"
I'm looking at using javamail to download email/gmail using imap in a swing application.
According to the FAQ on javamail http://www.oracle.com/technetwork/java/faq-135477.html#localprovs I'm going to need a "local store provider", does anyone have any recommendations or advice on ones to avoid / choose?
I had presumed that I would just store the messages in a database - is that a bad idea?
I'm really looking for the simpest solution I can find - but actually wo开发者_如何学编程rks!
Both JavaMailDir and Plexus mentioned in the other answers should work. However, I will add that after working with both (for reading messages from an actual inbox, not just as a local store) JavaMailDir seems to have some issues running on Windows. Particularly with the fact that the ".INBOX" folder begins with a dot.
JavaMaildir seems to be simple enough as you want from the examples
The full list of providers is on the Sun website.
Two providers I know:
- Mstor: mbox provider
- plexus: maildir provider, not much doc available
精彩评论