Skip to content
This repository was archived by the owner on Dec 30, 2024. It is now read-only.

Use imaplib2 and idle()#8

Open
ipendle wants to merge 1 commit intothesanjeetc:masterfrom
ipendle:patch-1
Open

Use imaplib2 and idle()#8
ipendle wants to merge 1 commit intothesanjeetc:masterfrom
ipendle:patch-1

Conversation

@ipendle
Copy link

@ipendle ipendle commented Aug 31, 2019

I found I kept getting TIMEOUT and broken pipe errors after running for periods of more than a day, due to the constant polling of the email server in the previous version. The update to imaplib2 allows use of idle() so the script waits until there is email to process. Seems much more reliable and uses less CPU. Works fine now on an old/original raspi as well as more recent.

I found I kept getting TIMEOUT and broken pipe errors after running for periods of more than a day, due to the constant polling of the email server in the previous version. The update to imaplib2 allows use of idle() so the script waits until there is email to process. Seems much more reliable and uses less CPU. Works fine now on an old/original raspi as well as more recent.
@ipendle ipendle changed the title Update siricontrol.py Use imaplib2 and idle() Sep 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant