开发者

Choosing a JavaMail "local store provider"

开发者 https://www.devze.com 2023-01-19 11:07 出处:网络
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 goin

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:

  1. Mstor: mbox provider
  2. plexus: maildir provider, not much doc available
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号