
cfaust at doyougot
Jun 24, 2009, 8:50 AM
Views: 264
Permalink
|
Folks, We need to write a script to auto purge mail after x days - we are using Exim 4 with the maildir format. I want to make sure we handle any directories the user might make on the server via IMAP or webmail but at the same time I don't want to risk deleting something I shouldn't. Right now on my current install I see 2 directories I should NOT process courierimapkeywords tmp My question is am I safe to just skip these 2 directories or is there a better way? For example is there some way I can process every directory and determine if the file I'm looking at is a mail file (and not something else)? Or would it be valid to say the only mail directories under a user's account is either called "cur" or starts with a period ".someotherfolder"? Any advise would be appreciated. TIA! -- ## List details at http://lists.exim.org/mailman/listinfo/exim-users ## Exim details at http://www.exim.org/ ## Please use the Wiki with this list - http://wiki.exim.org/
|