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, Aug 13, 2002 at 10:34:08PM -0500, 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 accomplishes the same thing I already have in a more roundabout way,
and has the same problem where OfflineIMAP gives me spurious warnings about
wanting to delete folders between 6 and 3 (most of the day).
--
Martijn Pieters
| Software Engineer mailto:mj@xxxxxxxx
| Zope Corporation http://www.zope.com/
| Creators of Zope http://www.zope.org/
---------------------------------------------
|
|