Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make FOLDER error not interrupting account sync #57

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion offlineimap/imapserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ def _authn_helper(self, imapobj):
If any authentication method succeeds, routine should exit:
warnings for failed methods are to be produced in the
respective except blocks.

"""

# Authentication routines, hash keyed by method name
Expand Down Expand Up @@ -691,7 +691,11 @@ def callback(args):
# Connection closed, release connection and retry
self.ui.error(e, exc_info()[2])
self.parent.releaseconnection(imapobj, True)
elif e.severity == OfflineImapError.ERROR.FOLDER:
self.ui.error(e, exc_info()[2])
else:
# raising unhandled errors here makes the failed
# account to stop syncing in future attempts.
raise e
else:
success = True
Expand Down