On Mon, Mar 20, 2006 at 02:13:28PM +0000, Brian D wrote:
I'm trying to set up expiry of mailing lists using
formail/procmail. I have inserted a line in incoming messages to
give an expiry date:
Expires: 2006-03-22
I'm now trying to get a procmail recipe to work on that line when
it reaches that date. I've tried:
DATE=`date +%F`
EXPIRY= "expires: "$DATE
:0
* ^List-Id:.*mythtv
* EXPIRY ??
/dev/null
:0:
* ^List-Id:.*mythtv
/var/spool/mailbox/mythtv
Try, instead:
DATE = `date +%F`
EXPIRY = "^Expires: $DATE"
:0
* ^List-Id:.*mythtv
* $ $EXPIRY
/dev/null
:0 E:
/var/spool/mailbox/mythtv
Any (non rude) suggestions greatfully received.
Not sure why you felt compelled to stress "non-rude."
It seems a patronizing way to ask for help. Indeed,
I nearly deleted your message rather than answering it.
Dallman
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail