procmail
[Top] [All Lists]

Re: Who is the procmail maintainer? (revisited 2005)

2005-11-14 03:02:58
On Sat, Nov 12, 2005 at 10:44:07AM +1300, Volker Kuhlmann wrote:

How do I sort mail to $MAILDIR/YYYYMMDD ? I run date(1).

You can use the date from the From_ line (or one from some
other header field like one of the Received header fields, or
even fall back to the date in the Date header field).

With all due respect Ruud, but that is a laughable
suggestion. Coding the recipe with a call to date is done in 30
seconds, it's difficult to put a bug into it, and I know what
I'm getting. Starting to parse From_ (oops, it doesn't have a
guaranteed format) takes ages to go through develop/test cycles,
is error prone, and plain isn't worth my time - especially with
procmail's prehistoric \/ function. Your kind of suggestion
illustrates nicely why there needs to be some procmail evolution
to bring its use-by date forward to the current date, and
preferably beyond. As someone pointed out, vi lost it ages ago.

Except, Volker, (1) From_ *does* have a set format, and (2) we've
been posting examples of how to do it for about nine years now.
Yes, if you have to do it all yourself and re-invent the wheel,
it's a p.i.t.a.  If you find a workable solution in the archives,
it's not.

I've used a private version of parsing the From_ line for a number
of years.  It works flawlessly.

I also now have a procmail-only date-chain checker that runs
through all Receiveds.  That was rather a p.i.t.a., I can tell
you!

Dallman

____________________________________________________________
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