procmail
[Top] [All Lists]

backup problem

1997-07-03 21:37:00
-----BEGIN PGP SIGNED MESSAGE-----

I'm using the following recipe to maintain a backup of the last 100 messages
received.

   # Create a backup cache of 100 most recent messages in case of mistakes

   :0 c
   z.backup

   :0 ic
   | cd z.backup && rm -f dummy `ls -t msg.* | sed -e 1,100d`

The problem is that the backup cache, (z.backup) isn't being pruned. Here's
the last 3 messages listed in z.backup; 

  N 1316 Jul  3 Martin Ebourne      (2,922) Re: Xterm vs nxterm vs rxvt
  N 1317 Jul  3 Sunando Sen         (1,953) Re: Is there a linux equivalent of 
d  N 1318 Jul  3 Graeme Bell         (1,854) Changing mouse port
- ->N 1319 Jul  3 Yafei Liu           (2,563) Re: Changing mouse port

As you can see there's 1,319 messages in the backup cache. How can I make it
prune the cache automatically? 

The path to the file is /home/russ/mail/z.backup, (z.backup is a file, not a
directory.) All my incoming mail is sorted into folders in /home/russ/mail/
by procmail.

Russ.

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3a
Charset: noconv

iQCVAwUBM7x4kA6fwxtzDsB1AQHpHwP/ZVqIbG2NP3h/22h/Mcf254/QXMQNTiTk
60dsUXG/kbCI4VqZ2KsWN+sddjPtZz9ww1jE5X9cRcQ0dGBk2Ia6nn36GlE98AFZ
mb2riFwBTRyUnF7fN+9Jy8uYOxU/aDJtbfVbajuKHxFWjQmBd/ptie/d5I44l9Xc
kT52Yg6vCIw=
=LvoY
-----END PGP SIGNATURE-----

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