Complete.Org: Mailing Lists: Archives: offlineimap: August 2002:
Re: OfflineIMAP gives DELETE warnings for filtered-out folders.
Home

Re: OfflineIMAP gives DELETE warnings for filtered-out folders.

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: offlineimap@xxxxxxxxxxxx
Subject: Re: OfflineIMAP gives DELETE warnings for filtered-out folders.
From: Jeff Squyres <jsquyres@xxxxxxxxxx>
Date: Thu, 15 Aug 2002 07:50:03 -0700 (MST)

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/



[Prev in Thread] Current Thread [Next in Thread]