Windows 下的 javamail 目录问题
我正在使用 javamaildir 从 Windows 计算机上的物理文件夹中读取电子邮件。 我将 URL 作为 "maildir:D:\\home\\test\\maildir"
传递。目录 maildir 有电子邮件消息。我能够连接到商店 "maildir:D:\home\test\maildir"
,但是当我尝试 getFolder("inbox") 时,我收到异常消息“folder” “INBOX”未找到”是指以 inbox 命名的文件夹默认为 javamaildir?。
我需要澄清两个问题:
- 我的方法正确吗?
- 在 Windows 上使用 javamaildir 访问文件夹时出现点问题,我们可以通过编程方式处理它吗...
您的建议将会有所帮助
,提前致谢......
I am using javamaildir
to read e-mail messages from the physical folder on windows machine.
I am passing the url as "maildir:D:\\home\\test\\maildir"
. the direcotry maildir has the email message. I am able to connect to the store "maildir:D:\home\test\maildir"
, but when i am trying to getFolder("inbox"), I'm getting the exception saying 'folder 'INBOX' not found' is that folder named with inbox is by default for javamaildir?.
I need two clarifications:
- Am i approaching in the right way?
- There is a dot problem in accessing the folder using javamaildir on windows , can we hanlde it programatically...
Your suggetions will be helpful
Thanks in advance.........
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我在 Windows 上读取 UNIX 风格的 maildir 文件夹时遇到了类似的问题。这些文件夹通常有一个名为
.INBOX
的收件箱文件夹,这似乎会在 Windows 上引起问题。据我所知,javamaildir 库期望收件箱文件夹具有“.”。在名字中。我真的没有一个好的解决方案,但是我有一个类似的帖子 在这里。不确定这是否会有很大帮助。祝你好运!
I ran into a similar issue with reading the UNIX style maildir folders on Windows. These folders typically have a inbox folder named
.INBOX
which seems to cause issues on Windows. From what I could tell the javamaildir library expects the inbox folder to have the '.' in the name.I don't really have a good solution, however I had a similar post here. Not sure if it would be much help. Good Luck!