atom feed20 messages in net.sourceforge.lists.courier-usersRe: [courier-users] Re: Proposing new...
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] Re: Proposing new functions for maildropfilter
From:Eduardo Roldan (tra@multitel.com.uy)
Date:Oct 1, 2003 8:55:40 pm
List:net.sourceforge.lists.courier-users

On Wed, 2003-10-01 at 23:32, Sam Varshavchik wrote:

Eduardo Roldan writes:

I think that the conditional functions (the ones you only use in the IF statement) proposed by cour@asfast.net shold be in maildrop because in a tyipical filter these are evaluated each time a message is delivered.

Define "typical filter". To me a typical filter means: depending on the message's contents, deliver to this folder, or that folder. Or, perhaps, discard the message; or maybe forward it.

A typical filter does what you say. I agree. The point is this: if your filter does an evaluation don't based in the content of a message, there is a high probability that you are checking the existence of a file or directory. This is a personal view, maybe I'am wrong. The most famous example is the Maildir autocreation filter.

After thinking a moment I acknowledge you are right. The cases are very rare and can be done without checking the existence of a file or directory.

One stupid case: 1- I want to open a gdbm file. If it not exist copy one preinitialized by the administrator with some key:value pairs. How I do this without doing two gdbmopen calls or exec /bin/test one time?

Anyway a isdir() statement could make happy the Maildir autocreation folks.

These things can be accomplished entirely by the existing facilities in maildrop. When you start doing things like checking if an external file exists, creating or removing directories, I think you're getting beyond what a typical mail filter does.

Thanks for your time. I'am a lame now, not /bin/test.