OfflineIMAP/offlineimap

Handle server side throttling

Open

#666 ouverte le 3 mai 2020

Voir sur GitHub
 (4 commentaires) (0 réactions) (0 assignés)Python (373 forks)batch import
featuregood first issueneed contributor!

Métriques du dépôt

Stars
 (1 765 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

General informations

  • system/distribution (with version): Debian Buster
  • offlineimap version (offlineimap -V): offlineimap v7.2.3
  • Python version: v2.7.16
  • server name or domain: Amazon WorkMail
  • CLI options: nothing special

Configuration file offlineimaprc

[Repository WorkMail-Remote]
type = IMAP
remotehost = imap.mail.eu-west-1.awsapps.com
remoteuser = REDACTED
readonly = true
maxconnections = 4
ssl = true
sslcacertfile = /etc/ssl/certs/ca-certificates.crt

Logs, error

Thread 'Copy message from WorkMail-Remote:Vault/2007' terminated with exception:
Traceback (most recent call last):
  File "/usr/share/offlineimap/offlineimap/threadutil.py", line 160, in run
    Thread.run(self)
  File "/usr/lib/python2.7/threading.py", line 754, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/share/offlineimap/offlineimap/folder/Base.py", line 839, in copymessageto
    message = self.getmessage(uid)
  File "/usr/share/offlineimap/offlineimap/folder/IMAP.py", line 324, in getmessage
    data = self._fetch_from_imap(str(uid), self.retrycount)
  File "/usr/share/offlineimap/offlineimap/folder/IMAP.py", line 784, in _fetch_from_imap
    imapobj.select(self.getfullIMAPname(), readonly=True)
  File "/usr/share/offlineimap/offlineimap/imaplibutil.py", line 70, in select
    raise OfflineImapError(errstr, severity)
OfflineImapError: Error SELECTing mailbox 'Vault/2007', server reply:
('NO', ['EXAMINE Too many actions per second, please back off (0.210 + 0.000 + 0.209 secs).'])

Steps to reproduce the error

  • Run a sync with the above server

I've scanned the man back and forth and there doesn't seem to be an option to add a "minimum delay" between commands.

I'm not an expert of IMAP protocol, is this a valid requirement or is the server supposed to slow down / keep operations on hold on its side?

Thanks

Guide contributeur