offlineimap3
offlineimap3 copied to clipboard
Folderlist to includee subfolders
Hi : I use
offlineimap -V
offlineimap v8.0.0, imaplib2 v3.05, Python v3.11.2, OpenSSL 3.0.15 3 Sep 2024
on devuan daedalus remote mail server is posteo.de, local is Maildir.
I have this in .offlineimaprc :
folderfilter = lambda foldername: foldername not in [ 'Drafts',
'Empfangsgarantie-Meldungen', 'G_D', 'INBOX',
'Junk', 'Sent', 'Spam-Log', 'Trash' ]
However there are subdirectories in these folders, which do not get excluded from sync. Is there a simple way to extent the folderfilter to all subdirectories, in this case to not sync them ?
found something here https://www.offlineimap.org/doc/nametrans.html#folderfilter example 3