Skip to content
This repository has been archived by the owner on Mar 17, 2022. It is now read-only.

occur error "CRITICAL:zmail:<POPServer username:[email protected] password:xxx pop.sina.com:995 ssl:True tls:False> duplicate login!"" #85

Open
yonkylin opened this issue Jan 4, 2020 · 5 comments

Comments

@yonkylin
Copy link

yonkylin commented Jan 4, 2020

my code like this:
while True:
try:

        mails = server.get_mails(start_time=newTime,sender=my_sender)
        # mail = server.get_latest()
        if len(mails) > 0:
            for m in mails:
                print("111")
            time.sleep(60)
            latestmail = server.get_latest()
            newTime = (latestmail['date'] + datetime.timedelta(seconds=1)).strftime('%Y-%m-%d %H:%M:%S')
        time.sleep(300)
    except:
        time.sleep(600)

i don't know why happened "CRITICAL:zmail:<POPServer username:[email protected] password:xxx
pop.sina.com:995 ssl:True tls:False> duplicate login!"

@zhangyunhao116
Copy link
Owner

looks like this problem could be fixed in 0.2.8, please have a try.

@yonkylin
Copy link
Author

用了0.2.8的了,每15分钟收取一次,但是运行一天多就会出现上面这个错误

@yonkylin
Copy link
Author

我用的是新浪邮箱,每隔15分钟收取一次,但是程序运行一两天就会报duplicate login!这个错误!按理说定时收取这个场景应该挺常见的,不知其他人有没有遇到过?有没有什么办法解决呢?

@wsgfz
Copy link

wsgfz commented Jan 25, 2021

+1 每分钟取一次

现在也会出这个
[POPServer username:xxx password:xxx pop.exmail.qq.com:995 ssl:True tls:False duplicate login!]

@thinkpadlx
Copy link

这个收取邮件时,会频繁登录,比如 get_latest,收一个邮件就要登录退出三次,希望能改成持续连接,不必每次都登录退出

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants