Quoting Craig Jackson <[EMAIL PROTECTED]>: > Hi, > > The below script is supposed to delete mail in all IMAP folders older > than 60 days. But it deletes more recent email also. Does anyone have an > idea as to why this doesn't work? I post to this group because I am > using courier-imap and I have no idea why this find command does not > work. Does courier-imap change the email files? > > Thanks, > Craig > > ################## > #!/bin/bash > > DIR=/var/spool/exim/vmail > > find $DIR -type f -name "[0-9a-zA-Z]*\.[0-9a-zA-Z]*.server.domain.com" > -mtime +60 -delete
I assume that you have used "-ls | less" or something similar in place of -delete for testing. Did that work as expected? because at first glance it looks like it should work. ed > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Courier-imap mailing list > [email protected] > Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Courier-imap mailing list [email protected] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap
