hi,
finaly i've finished my firt alpha version of a patch to vpopmail's
vdeliver which adds some filter capabilities.
everey one interested in some alpha testing can get the patch.
here is a short draft about how to handle it:
vpopmail simple filter add on
=============================
format of the .vpopfilter file in the users HOME directory:
~/vpopmail/domains/foo.com/bar/.vpopfilter
operator<TAB>location<TAB>search string<TAB>target<TAB>action
operators:
~~~~~~~~~~
- first in chain
& and
| or
! not
locations:
~~~~~~~~~~
To
From
Subject
Cc
Reply-To
AnyHeaders -> check all but body
AnyRecipent -> check To and Cc
Body -> check all not headers
targets:
~~~~~~~~
- no action
.mailfolder any valid mailfolder e.g. .mailfolder+subfolder
.$$DELETE$$ discards message with out any further notice
[EMAIL PROTECTED] forwarding is not yet implemented (re inject to qmail ?)
with this a real "vacation" cound be implemented
actions:
~~~~~~~~
+ inspect next rule (per definition "target" has to be "-" for this rule)
- end of chain
* stop .vpopfilter processing
example:
~~~~~~~~
moove mail from [EMAIL PROTECTED] to mailfolder .foo
- From [EMAIL PROTECTED] .foo -
moove mail containing "qmail" in From: header AND containing "vpopmail"
in body to mailfolder .qmail.vpopmail
- From qmail - +
& Body vpopmail .qmail.vpopmail -
the .filter file containing this 2 rules may look like:
- From [EMAIL PROTECTED] .foo -
- From qmail - +
& Body vpopmail .qmail.vpopmail -
Matthias Henze
MH458-RIPE
MHC SoftWare GmbH voice: +49-(0)9533-92006-0
Fichtera 17 fax: +49-(0)9533-92006-6
96274 Itzgrund/Germany e-Mail: [EMAIL PROTECTED]
-----------------------------------------------------
------------- http://www.mhcsoftware.de -----------