0

I know this question may not adhere to this website's standards but I couldn't find the answer anywhere else . I'm trying to create mail listener client which checks a POP3 account every 30 seconds for any new mails and downloads it. Right now I'm testing it out on Outlook.com. The issue I face is, after say 3 -4 tries , it gives me an error saying LOGIN Limit reached. Try logging in fewer times in every 15 minutes.

This seems to be a login restriction imposed by Outlook.com but is there any way to overcome it ? I mean practically , I'm just logging in and not closing the connection so Its still logged in .So there's no reason why it should be giving me the error. I'm not in a position to post any codes for various reasons. The best I can do is give you an algorithm of what I'm doing:

1. Open connection for a user
2. Open inbox folder of that user
3. Read mails 
4. Close inbox folder
5. Sleep for 30 seconds
6. Goto step 2

Only on app exit, I close the connection.

Can anyone point out what I'm doing wrong in the steps assuming that the code is correct.

4

1 回答 1

0

如果有办法绕过服务器强加的限制,那么有这个限制真的没有意义,不是吗?:-)

请注意,当您关闭收件箱时,您正在关闭连接。因为 POP3 协议只允许您访问一个文件夹,所以当您关闭收件箱时,JavaMail POP3 提供程序只会记住您能够连接到服务器,并且下次打开收件箱时它会使用相同的用户名重新连接到服务器/密码。商店似乎是“开放的”,但没有活动连接。

因此,最重要的是,您需要减少打开收件箱的频率。

于 2013-08-07T19:16:46.283 回答