atom feed20 messages in net.sourceforge.lists.courier-usersRe: [courier-users] Proposing new fun...
FromSent OnAttachments
Courier UserOct 1, 2003 9:20 am 
Eduardo RoldanOct 1, 2003 11:34 am 
Mitch (WebCob)Oct 1, 2003 12:05 pm 
Malcolm WeirOct 1, 2003 12:32 pm 
Sam VarshavchikOct 1, 2003 2:53 pm 
Eduardo RoldanOct 1, 2003 4:51 pm 
Sam VarshavchikOct 1, 2003 7:32 pm 
Eduardo RoldanOct 1, 2003 8:55 pm 
David JonesOct 2, 2003 5:02 am 
Julian MehnleOct 2, 2003 5:18 am 
Jon NelsonOct 2, 2003 6:48 am 
Gordon MessmerOct 2, 2003 9:08 am 
Courier UserOct 3, 2003 10:00 am 
Carlos PazOct 5, 2003 6:58 pm 
Jon NelsonOct 5, 2003 8:12 pm 
Courier UserOct 6, 2003 6:27 am 
Jon NelsonOct 6, 2003 7:58 am 
Theo Cabrerizo DiemOct 8, 2003 10:13 am 
Daniel HigginsOct 8, 2003 11:52 am 
Gordon MessmerOct 8, 2003 12:01 pm 
Subject:Re: [courier-users] Proposing new functions for maildropfilter
From:Eduardo Roldan (tra@multitel.com.uy)
Date:Oct 1, 2003 11:34:44 am
List:net.sourceforge.lists.courier-users

On Wed, 2003-10-01 at 13:20, Courier User wrote:

There are some functions that I would like to see in maildrop's filtering language, and I'm wondering how you folks feel about me writing these functions and then supplying patches for maildrop?

If there is enough interest in this, I will start work on this right away in my spare time. I would then have a prototype ready within a week or so.

The following group of functions are intended to replace the following type of construct:

INVOKE=`/bin/test -f $FILE 1>/dev/null 2>&1` if ( $RETURNCODE != 0 ) { ... etc. ... }

The following alternative functions avoid the overhead of forking a subprocess, setting up a pipe to capture its output, and then discarding the output once the command finishes ... all to simply query the process's return code for a true/false value that could be gotten much more quickly and easily via a system library function, and in some cases, to get a simple side-effect.

isfile(item) returns 1 if the named item is an existing file; otherwise returns 0

OK for me. Ask Sam if he will include these changes in mainstream maildrop.