De acordo com o arquivo de configuração do exemplo /usr/share/offlineimap/offlineimap.conf
incluído, você precisa definir idlefolders
para uma lista de pastas a serem monitoradas.
########## Advanced settings # ... # In between synchronisations, OfflineIMAP can monitor mailboxes for new # messages using the IDLE command. If you want to enable this, specify here # the folders you wish to monitor. Note that the IMAP protocol requires a # separate connection for each folder monitored in this way, so setting # this option will force settings for: # maxconnections - to be at least the number of folders you give # holdconnectionopen - to be true # keepalive - to be 29 minutes unless you specify otherwise # # This feature isn't complete and may well have problems. See the manual # for more details. # # This option should return a Python list. For example # # idlefolders = ['INBOX', 'INBOX.Alerts'] #