procmail
[Top] [All Lists]

Fw: Procmail 4.0 WishList

2004-06-28 05:02:25
"Dallman Ross" <dman(_at_)nomotek(_dot_)com> wrote:
On Sun, Jun 27, 2004 at 12:57:12AM -0700, Professional Software
Engineering wrote:
[snip]
The {n,m} regex matching that is part of the modern egrep standard
would be dang useful; but we've talked before about the problems
with backward compatibility.  I didn't have a useful suggestion about
that before, so kept my mouth shut.  A foray into gnu awk scripting
this last week provided me with a new idea, however.
[snip]
I like that idea: set a specific start-up option to use the new
syntax.  We ought to be able to do that with {n,m} interval
expressions in procmail.

having a specific start-up option would be problematic since many
of us use home made recipes and imported recipes. so, it is easy
to convert home made recipes to a new syntax, it is not for imported
recipes which may be really long and complicated ones.

regarding this, I would prefer to have a PMVERSION=4 like variable
which may be use to switch back and forth from the current syntax
and the new syntax if any.

sample recipe :

OPMVERSION=$PMVERSION
PMVERSION=4
INCLUDERC=home_made.pm
PMVERSION=$OPMVERSION
INCLUDERC=old_syntax_imported.pm
PMVERSION=4
INCLUDERC=yet_another_home_made.pm

yet another sample recipes :

INCLUDERC=home_made.pm
INCLUDERC=new_syntax_imported.pm
INCLUDERC=yet_another_home_made.pm

well done new_syntax_imported.pm :

OPMVERSION=$PMVERSION
PMVERSION=4
...
PMVERSION=$OPMVERSION

[snip]

however, I'm currently using imapfilter to cleanup my imap folders
before to retreive them using fetchmail/procmail. imapfilter uses
lua as the underlying language which is pretty easy to learn and
to use. lua has many extentions such as sockets and pcre and I'm
currently thinking to write yet another email processor using it.
it may be possible to replace the fetchmail/procmail couple w/ it.
the problem is, how to convert existing procmail recipes to the
lua syntax? the advantage of lua over perl is that it is far less
resource eater and pretty fast. here is some pointers :

    http://www.lua.org/
    http://www.tecgraf.puc-rio.br/~diego/luasocket/
    http://luacheia.lua-users.org/

Cyrille Lefevre.
-- 
home: mailto:cyrille(_dot_)lefevre(_at_)laposte(_dot_)net

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