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

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: OfflineIMAP gives DELETE warnings for filtered-out folders.
From: Martijn Pieters <mj@xxxxxxxx>
Date: Mon, 12 Aug 2002 16:12:09 -0400

Hi,

Now that I finaly switched over to a nested maildir structure, OfflineIMAP
has started to spew warnings about my Archive/ directories. OfflineIMAP has
not yet implemented local maildir deletion, and the warnings tell me that if
it was implemented, I'd loose all my Archive/ folders.

Here is my take on what happens in my setup:

  - My default account syncs to maildirs based in ~/IMAP/. It syncs
    everything except folders starting with 'Archive'.

  - My archives account setup syncs to ~/IMAP/Archive/. It only syncs
    folders that start with 'Archive/' (note the extra slash in there, I
    don't sync the empty 'Archive' IMAP folder, only the subfolders).

  - When the default account syncs, it sees the local ~/IMAP/Archive/
    directory and because the remote Archive/ folders have been filtered
    out, notifies me of every maildir in that tree would be deleted if only
    the feature would have been enabled. Damn irritating when running
    Blinkenlights, and Noninteractive under a cronjob now spews an email
    every few minutes with the warnings.

I have implemented a very temporary workaround, where the deletefolder
method of Maildir.MaildirRepository applies the folderfilter method to every
folder it is asked to delete and ignores folders that have been filtered
out. This is of course not the correct solution, as this filter only matches
the ~/IMAP/Archive/ directory by accident because it happens to use the same
name as the IMAP folder.

I am not sure what a better solution would be. Maybe a list of base
directories of other accounts should be available to filter out folders
marked up for deletion but within another account base dir?

-- 
Martijn Pieters
| Software Engineer  mailto:mj@xxxxxxxx
| Zope Corporation   http://www.zope.com/
| Creators of Zope   http://www.zope.org/
---------------------------------------------


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