Re: OfflineIMAP gives DELETE warnings for filtered-out folders.
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Tue, 13 Aug 2002, John Goerzen wrote:
> Consider this example:
>
> in offlineimaprc:
>
> pythonfile = ~/.offlineimap.py
>
> folderfilter = myfolderfilter
>
> in ~/.offlineimap.py:
>
> import time
> def myfolderfilter(foldername):
> hour = time.localtime()[3]
> if hour < 3 or hour > 6:
> return 1
> if not foldername.startswith('Archive/'):
> return 1
> return 0
This idea seems to work like a champ for me.
Thanks!
{+} Jeff Squyres
{+} jsquyres@xxxxxxxxxx
{+} Research Associate, Open Systems Lab, Indiana University
{+} http://www.osl.iu.edu/
|
|