procmail
[Top] [All Lists]

Re: Extract Year and Month from email

2007-08-24 07:41:10
Am 2007-08-23 12:54:19, schrieb rouble:
Hi All,

Is there a way to write a procmail recipe to achieve the following:

:0:
<Some Condition>
.Mail.{Year from Date header of this mail}.{Month from Date header of
this mail}

    :0
    * <Some Condition>
    {
      RFCDATE=`formail -XDate:`
      Y_M=`date --date="${RFCDATE}" "+%Y.%m"`

      :0:
      .Mail.${Y_M}
    }

Greetings
    Michelle Konzack
    Systemadministrator
    Tamay Dogan Network
    Debian GNU/Linux Consultant


-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack   Apt. 917                  ICQ #328449886
                   50, rue de Soultz         MSN LinuxMichi
0033/6/61925193    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>