| From | Sent On | Attachments |
|---|---|---|
| Courier User | Oct 1, 2003 9:20 am | |
| Eduardo Roldan | Oct 1, 2003 11:34 am | |
| Mitch (WebCob) | Oct 1, 2003 12:05 pm | |
| Malcolm Weir | Oct 1, 2003 12:32 pm | |
| Sam Varshavchik | Oct 1, 2003 2:53 pm | |
| Eduardo Roldan | Oct 1, 2003 4:51 pm | |
| Sam Varshavchik | Oct 1, 2003 7:32 pm | |
| Eduardo Roldan | Oct 1, 2003 8:55 pm | |
| David Jones | Oct 2, 2003 5:02 am | |
| Julian Mehnle | Oct 2, 2003 5:18 am | |
| Jon Nelson | Oct 2, 2003 6:48 am | |
| Gordon Messmer | Oct 2, 2003 9:08 am | |
| Courier User | Oct 3, 2003 10:00 am | |
| Carlos Paz | Oct 5, 2003 6:58 pm | |
| Jon Nelson | Oct 5, 2003 8:12 pm | |
| Courier User | Oct 6, 2003 6:27 am | |
| Jon Nelson | Oct 6, 2003 7:58 am | |
| Theo Cabrerizo Diem | Oct 8, 2003 10:13 am | |
| Daniel Higgins | Oct 8, 2003 11:52 am | |
| Gordon Messmer | Oct 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.





