[Not that this is an IMAP issue, but rather a Maildir one]

On Sat, Aug 05, 2006 at 10:44:45AM +1000, James Gray wrote:
> Basically I'd like to run a script once a day that churns through my  
> personal IMAP folders and removes messages older than X days.  Some  
> folders I want to expire after 7 days, others 3 weeks, others 3  
> months.  I've already written the script to identify the messages but  
> currently just lists them.  Given that my IMAP store is maildir, is  
> there any problem with simply deleting the messages straight from the  
> maildir?  Or is there some sort of referential integrity checking  
> that I need to maintain within maildir?

There is nothing you need to do to delete a message in a standard Maildir
beyond unlink().  Many IMAP servers maintain some sort of cache or index,
but AFAIK they all know to go back to the authoritative source (the actual
files) for any actual data.  If they don't, of course, then it's a bug in
their implementation -- not that that would necessarily help you.  Courier,
incidentally, doesn't maintain an index.

- Matt
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to