procmail
[Top] [All Lists]

Re: Robust date code (year extraction)

2004-07-30 14:08:25
Hello Justin, 

Am 2004-07-24 13:27:12, schrieb Justin Gombos:
With dman's help, I've written the following code to extract the year
from a message.  Here's what I have so far:


Why not use 

THE_YEAR=`date +%Y --date=$MATCH`

$MATCH can be the full RFC-822 Date.

Greetings
Michelle

-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/ 
Michelle Konzack   Apt. 917                  ICQ #328449886
                   50, rue de Soultz         MSM LinuxMichi
0033/3/88452356    67100 Strasbourg/France   IRC #Debian (irc.icq.com)

____________________________________________________________
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

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