procmail
[Top] [All Lists]

Re: original date (again)

2001-09-08 12:22:17
I say thank you for your Help
everything works fine now : -)

Should this Prob with original Date and Dialup Connections add to the Faq

--
Frank


----- Original Message ----- 
From: "Philip Guenther" <guenther(_at_)gac(_dot_)edu>
To: "Frank" <duranicub(_at_)gmx(_dot_)net>
Cc: <procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE>
Sent: Saturday, September 08, 2001 8:45 PM
Subject: Re: original date (again) 


"Frank" <duranicub(_at_)gmx(_dot_)net> writes:
...
procmail: Assigning "DATE= 8 Sep 2001 18:29:30 -0000
"
procmail: Assigning "MATCH="
procmail: Matched "8"
procmail: Match on "()\/[0-9]+"
procmail: Assigning "DAY=8"

Here's the problem: I forgot to pad the date to two digits.  So, after
the following recipe in what I sent you before:

:0
* DATE ?? ()\/[0-9]+
{ DAY = $MATCH }

insert this one:

# If the day isn't two digits, prepend a zero
:0
* ! DAY ?? ..
{ DAY = "0$DAY" }


Philip Guenther




_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail