Lloyd Standish schreef:
* !^From:.*\.hk\.|\
!^From:.*\.kr\.|\
!^From:.*\.tr\.
That looks bizar. You can write it as:
* ! ^From:.*\.(hk|kr|tr)\.
I also tried doing the check of missing "From:" (and emtpy from, etc.)
using scoring, like this:
:0
* 1^0 ^From:([ ]$|$)
* 1^0 !^From:
* 1^0 ^From:.*<>
The advantage of '9876543210^0' above '1^0' is that the first match
decides.
/dev/null
Better not use delivery to '/dev/null' when testing. Even better not use
it at all.
Debugging the check for a missing from header is a bit difficult,
since I cannot easily generate a test email with no from header.
Just create a text file without the From: header field, and run procmail
from the command line:
$ procmail ./test.rc < message.txt
--
Grtz, Ruud
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail