24db42916c
We were retrying indefinitely on imapobj.abort() (as that is what imaplib2 suggests), but if the failure occurs repeatedly, we'll never quit this loop. So implement a counter that errs out after unsuccessful retries. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de> Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>