OfflineIMAP/offlineimap

Handle server side throttling

Open

#666 aperta il 3 mag 2020

Vedi su GitHub
 (4 commenti) (0 reazioni) (0 assegnatari)Python (373 fork)batch import
featuregood first issueneed contributor!

Metriche repository

Star
 (1765 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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

Guida contributor