Closed acolomb closed 3 years ago
folderfilter must be applied on the repository level. Each repository might have it's own (independent) filters. There's no reason to have this at the account level, IMHO.
BTW, due to the end of python2 we won't implement new features. You might like to apply on offlineimap3.
General informations
offlineimap -V
): offlineimap v7.2.3, imaplib2 v2.57 (system), Python v2.7.18, OpenSSL 1.1.1f 31 Mar 2020Configuration file offlineimaprc
This question concerns the following quote from the example configuration file:
This comment wording suggests that a folderfilter for accounts exists. However, the
folderfilter
option currently only works within a[Repository XYZ]
section, but not inside an[Account]
. I think the latter would be very useful, so one can use the same repository definition for multiple accounts, which are limited to different subsets of folders each. Right now the repository section needs to be tweaked each time a different folder set should be synchronized, or several identical sections added, differing only in theirfolderfilter
option.The proposed semantics would be that adding a
folderfilter
option within an[Account]
section will be treated as if the samefolderfilter
option had been specified under both involved[Repository]
sections.What do you think of such a feature? Would it be hard to implement in Offlineimap?