procmail
[Top] [All Lists]

Re: Extract Year and Month from email

2007-08-23 10:12:52
In message 
<a8007ab40708230954x1e717f5ei72fdcc59894a8b50(_at_)mail(_dot_)gmail(_dot_)com>, 
rouble wrote:

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}

Yes.  It is quite easy to do especially because the format of the Date:
header is fixed since it is defined in RFC2822 and before that RFC822.
There are cases where it doesn't match that specified, but those are
almost always spam.

There are examples in the archives of this mailing list.

What have you tried so far?


Cheers,
       Nick.
-- 
____________________________________________________________
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>