Hello,

I really like the syntax clarity of maildrop compared to e.g. procmail. 
But if I have a long list of Subjects and Senders that should be filed 
in one mailbox it's a lot of writing and clutters the .mailfilter

if (/^Subject: foo$/ || /^Subject: bar$/ || /^From: s...@example.org$/ 
|| ...)
    to "somewere"

Is there a way to put these rules in an external file? I know about 
lookup, but that matches only one expr againt a set of regexps, I prefer 
something like that:

if (matchfile(filename))
    to "somewhere"

matchfile is like:

/^Subject: foo$/
/^Subject: bar$/
/^From: s...@example.org$/
...

or that this expression can even return a value:

TARGET = matchfile(filename)
to "$TARGET"

and matchfile is like:

/^Subject: foo$/, foobar
/^Subject: bar$/, foobar
/^From: s...@example.org$/, example
...

so that is returns foobar or target, based on the match. Is something 
like that, preferably the latter, possible to maildrop?

Thanks a lot!

Florian

------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to