Accessing the "--quick" information from pythonfile/folderfilter?
Nicolas Sebrecht
nicolas.s-dev at laposte.net
Thu Mar 19 22:01:33 GMT 2015
On Thu, Mar 19, 2015 at 01:26:43PM -0500, Tim Chase wrote:
> Is there a way from code (either in pythonfile or a folderfilter) to
> determine if the current run of offlineimap has been run with the
> -q/--quick parameter? On a quick run, I'd just like to refresh a
> select couple folders, whereas on a full run, I'd like to refresh
> everything.
The best way is to write a little wrapper that would check the presence
of -q|--quick. Once segregation is done, make the real call to
offlineimap and override the configuration option "folderfilter" with
the '-k' CLI option.
Another way is to use 2 configuration files but this implies duplication
of the settings.
> PS: Asked this on IRC but irc.freenode.net#offlineimap appears to be a
> bit of a ghost-town.
Well, I guess the community is not wide enough to get people most of the
time.
--
Nicolas Sebrecht
More information about the OfflineIMAP-project
mailing list