On Fri, Jul 23, 2004 at 07:02:33PM -0600, Justin Gombos wrote:
* Dallman Ross <dman(_at_)nomotek(_dot_)com> [2004-07-23 17:05]:
If [. . .] you still want to use the Date: header's
asserted year, you can still easily do it in procmail only.
Here's a sample Date: header (from some spam I have lying around,
but heh):
Date: Tue, 20 Jul 2004 11:47:42 +0000
Lots of ways to approach this, but the time should always be
there, so I'd use that since the colons are a nich anchor
or search object:
:0
* ^Date:.*\/(19|20)?[0=9][0-9][^a-z]+:
* MATCH ?? ^^\/[^ ]+
{ YEAR = $MATCH }
Thanks for posting that. I assume your [0=9] is really a [0-9]?
Yes, thanks for catching that.
Also, is the compound statement delimiters "{}" really necessary if
it's just a single command?
The curly braces are necessary under this approach, yes.
--
dman
____________________________________________________________
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