[minor] Ignore connection time out in email receive
This commit is contained in:
parent
7226d640f5
commit
9b4e005362
1 changed files with 8 additions and 1 deletions
|
|
@ -148,7 +148,14 @@ class POP3Server:
|
|||
return "-ERR Exceeded the login limit" in strip(cstr(e.message))
|
||||
|
||||
def is_temporary_system_problem(self, e):
|
||||
return "-ERR [SYS/TEMP] Temporary system problem. Please try again later." in strip(cstr(e.message))
|
||||
messages = (
|
||||
"-ERR [SYS/TEMP] Temporary system problem. Please try again later.",
|
||||
"Connection timed out",
|
||||
)
|
||||
for message in messages:
|
||||
if message in strip(cstr(e.message)):
|
||||
return True
|
||||
return False
|
||||
|
||||
def validate_pop(self, pop_meta):
|
||||
# throttle based on email size
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue