On Thu, Jun 29, 2006 at 11:36:17AM +0100, Tariq Rashid wrote: > what are people's thought on when to do this... options which have > advantages and disadvantagea are as follows. what are people's experiences... > > * randomly clean parts of the userspace throughout the day > * do it all synchrnously at 3am? > * triggered by an event such as quota full or log-out. (not good for > neglected accounts) > > i'm thinking in terms of impact on the servers and the underlying storage > disk controllers...
If you're having to do a 'find' across the filesystem, I'd start it at 1am on Sunday morning. Depending on your mail spool size, it may take quite a few hours. Incidentally, one way to identify inactive accounts is to look at the mtime of the 'cur' subdirectory of the Maildir. Whenever new mail arrives, it is put in the 'new' subdirectory; when the user logs in to read the mail, it is moved to 'cur' and this updates the mtime timestamp on the 'cur' subdirectory itself. The only time this doesn't work is if the user is logging in but hasn't received any new mail. A small patch to pop3d/imapd/sqwebmail can forcibly update the 'cur' mtime in that case. Regards, Brian. Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Courier-imap mailing list [email protected] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap
