Introduce new error level FOLDER_RETRY
In cases where processing a folder failed, but a retry might well succeed e.g. when the server connection had simply timed out and was disconnected, we can throw a FOLDER_RETRY (which is less severe than FOLDER). Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de> Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
parent
7aa4c49ba4
commit
7bc45507cb
@ -5,11 +5,12 @@ class OfflineImapError(Exception):
|
|||||||
"""Severity level of an Exception
|
"""Severity level of an Exception
|
||||||
|
|
||||||
* **MESSAGE**: Abort the current message, but continue with folder
|
* **MESSAGE**: Abort the current message, but continue with folder
|
||||||
|
* **FOLDER_RETRY**: Error syncing folder, but do retry
|
||||||
* **FOLDER**: Abort folder sync, but continue with next folder
|
* **FOLDER**: Abort folder sync, but continue with next folder
|
||||||
* **REPO**: Abort repository sync, continue with next account
|
* **REPO**: Abort repository sync, continue with next account
|
||||||
* **CRITICAL**: Immediately exit offlineimap
|
* **CRITICAL**: Immediately exit offlineimap
|
||||||
"""
|
"""
|
||||||
MESSAGE, FOLDER, REPO, CRITICAL = 0, 10, 20, 30
|
MESSAGE, FOLDER_RETRY, FOLDER, REPO, CRITICAL = 0, 10, 15, 20, 30
|
||||||
|
|
||||||
def __init__(self, reason, severity, errcode=None):
|
def __init__(self, reason, severity, errcode=None):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user