* Udi Mottelo wrote on Jun 25, 2002 [19:10, +0300] :
On Tue, 25 Jun 2002, Nikolaus Hiebaum wrote:
The messages in the backuop folder look like this one: msg.tVmI
How can I make the part after the msg. to - say - be composed of year,
month, and date?
Or name the folder (not directory) by date:
D=`date '+%m%d'`
:0 c
/var/spool/backup/${D}
Thank you, Udi. I used a variation of your suggestion, namely
/var/spool/backup/msg.${D}
Because then I can still use the second part of the original recipe which
keeps only the last 36 messages stored.
:0 ic
| cd backup && rm -f dummy `ls -t msg.* | sed -e 1,36d`
But the thing with the the variable did it!!
--
CU, Niki PGP:http://www.hiebaum.org/pgpkey.html
*Draft beer, not people*
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail