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? > > Our backup software resets the atime after backup, so everytime the > > backup runs, the ctime changes and things in .Trash/cur never get deleted. > > 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. 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. -- Georg ------------------------------------------------------- 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
