On Sat, 30 Aug 2014 08:23:02 -0600
LuKreme wrote:

  if test -d "$J_PATH"; then
    MYFIND=`find $J_PATH/ -type f -mtime -7|grep -v dovecot`

On 30.08.14 22:32, RW wrote:
mtime may not be the best choice. Ideally what you want is the the time
since the spam was moved to Junk, rather than the time since it was
delivered.

ctime should provide this information - it's changed when sa file is moved. For example courier-imap uses ctime ifnormation for deleting old mail from
trash and spam (and whatever you configure to TRASH variable.

Note that something that manipulates file status can break this feature,
e.g.  a backup system that reads files and resets atime back will cause
resetting the ctime.  Setting it _not_ to reset atime (nobody uses atime
nowadays) should fix the problem.

--
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Fighting for peace is like fucking for virginity...

Reply via email to