procmail
[Top] [All Lists]

Formail deleting files

1995-10-06 16:18:16
Hi,

I'm using an auto-acknowledgment system which uses a file called 
cache.ack which caches who has sent me messages that the auto-ack system 
has replied to. The only problem is that this file will just keep on 
getting bigger and I have to manually take out the old names.

Is there any way to have formail (or procmail) automatically edit the 
file everytime it is accessed (unless you have a better solution) and 
edit out all the e-mail addresses that are 2 days old, thus keeping the 
file nice and small.

The file format is as such:

genesis(_at_)j51(_dot_)com 10/06/95
jakel(_at_)eos(_dot_)bony(_dot_)com 10/06/95
steinber(_at_)SLINKY(_dot_)CS(_dot_)NYU(_dot_)EDU 10/06/95

Thanks!
 
  -------------------------------------------------------------------------
  |  Brock Rozen  | InterNet Address: brozen(_at_)village(_dot_)ios(_dot_)com   
           |
  |               | CompuServe: 71614,240                                 |
  |               | ImagiNation: 1304                                     |
  |-----------------------------------------------------------------------|
  |       Check out my homepage at  http://www5.ios.com:80/~brozen        |
  |-----------------------------------------------------------------------|
  |  For automated information on various subjects, send an e-mail to my  |
  |         InterNet address with SEND HELP on the SUBJECT line.          |
  -------------------------------------------------------------------------

<Prev in Thread] Current Thread [Next in Thread>