offlineimap3 icon indicating copy to clipboard operation
offlineimap3 copied to clipboard

Folderlist to includee subfolders

Open phu9Suop opened this issue 9 months ago • 1 comments

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 ?

phu9Suop avatar Mar 29 '25 00:03 phu9Suop

found something here https://www.offlineimap.org/doc/nametrans.html#folderfilter example 3

phu9Suop avatar Mar 29 '25 15:03 phu9Suop