procmail
[Top] [All Lists]

RE: Some ideas to improve performance

2004-11-22 21:49:26


-----Original Message-----
From: procmail-bounces(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
[mailto:procmail-bounces(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE]On Behalf Of
mailarch(_at_)xy1(_dot_)org
Sent: Monday, November 22, 2004 2:57 PM
To: procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
Subject: Some ideas to improve performance


Hello,

I'm a great procmail user, but I have performance problems:
Could it be possible to add an option to parse files instead of 
reading stdin?
And could it be possible to use mmap for this?

Because after this it could be possible to fusion formail with procmail.


A nice feature would be to add a few of the formail options that control
the parsing of mailboxes and traversal of mailbox directories to the
procmail command line, so that procmail
is applied to each mail message. As you mention, this can be made even
more efficient if procmail were to build an internal representation of
the procmail file so that it doesn't have to be re-parsed for each
mail message. However, since procmail's semantics dictate that each
line is potentially variable substituted when encountered, and since
recursive includes are permitted, it would be dictate for pre-compilation
to work in general. However, a new batch mode for procmail might be
able to get by with the simplifying assumption that the .procmailrc file
(and its includes) can be parsed just once. Procmail would probably need
to mandate (and diagnose as an error), nested includes and includes get
their input filename from a variable substitution.


____________________________________________________________
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>