On Fri, Jul 12, 2002 at 02:25:29PM +0200, Georg Lutz wrote: > On 2002-07-11, Sam Varshavchik wrote: > > Georg Lutz writes: > > > > > Hi Sam, > > > > > > in maildir/maildirpurgetmp.c, function dopurge, the ctime of the files > > > is used. > > > > > > Is there a reason not to use mtime? > > > > Yes. > > > > Could you explain me, what gets broken, if I change ctime to mtime in > this function?
The purpose of the Trash folder is to retain mail for seven days (by default) before deleting it. If you change ctime to mtime, and delete a month-old message, the message will be deleted immediately, instead of seven days later. > > Something is broken. ctime cannot be changed by merely backing up the file. > > > > [ ... ] > > > > The field st_ctime is changed by writing or by setting > > inode information (i.e., owner, group, link count, mode, > > etc.). > > > > [ ... ] > > > > A read-only operation will not affect ctime. > > > > When atime is reset to the value before the file was backed up, ctime > gets changed. Fix your backup software. It should not be messing around with files. I back-up stuff daily, and atime stays put. > In cmlmcleanup.C, function cmdhourly, the atime of files in > modqueue-directory is checked for remoderation. So even a backup without > resetting the atime would not be a good solution. I may have to change that, but that doesn't affect ctime/mtime. -- Sam ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
