procmail
[Top] [All Lists]

Re: original date (again)

2001-09-08 11:56:27
"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

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