procmail
[Top] [All Lists]

Re: gzipping

1997-05-29 03:32:00
lupusy(_at_)afrodita(_dot_)rcub(_dot_)bg(_dot_)ac(_dot_)yu wrote,

| Im using the following recipe (from man page):
| 
| # Create a backup cache of 30 most recent messages in case of mistakes
| :0 c
| $HOME/Mail/backup
| :0 ic
| | cd $HOME/Mail/backup && rm -f dummy `ls -t msg.* | sed -e 1,30d`
| 
| It's OK, but I'd like to have gziped messages in backup directory.

Easy enough: just add another recipe in the middle:

  :0 c
  $HOME/Mail/backup

  :0aiWc
  | gzip $LASTFOLDER

  :0 ic
  | cd $HOME/Mail/backup && rm -f dummy `ls -t msg.* | sed -e 1,30d`

Since gzip preserves the timestamps, ls -t is unaffected, and you still keep
backups of the thirty most recent messages.

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