选择 JavaMail“本地存储提供商”
我正在考虑使用 javamail 在 swing 应用程序中使用 imap 下载电子邮件/gmail。
根据javamail上的常见问题解答 http://www.oracle.com/technetwork /java/faq-135477.html#localprovs 我需要一个“本地商店提供商”,有人对避免/选择的商店有任何建议或建议吗?
我原以为我只会将消息存储在数据库中 - 这是一个坏主意吗?
我真的在寻找我能找到的最简单的解决方案 - 但实际上有效!
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 works!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
其他答案中提到的 JavaMailDir 和 Plexus 都应该可以工作。不过,我要补充一点的是,在使用两者(用于从实际收件箱读取消息,而不仅仅是作为本地存储)之后,JavaMailDir 在 Windows 上运行似乎存在一些问题。特别是“.INBOX”文件夹以点开头。
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 似乎很简单,如您所愿 来自示例
提供程序的完整列表为 在 Sun 网站上。
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: