Tue 98-01-27 hermann(_at_)wecke(_dot_)com (Hermann Wecke) list.procmail
|
| :0
| * 1^1 ^.*parceiro\.com
| * -1^1 ^Subject:.*parceiro\.com
| /dev/null
|
| So, if the first condition is met (* 1^1 ^.*parceiro\.com) I would like to
| reply with a custom message and include the original message.
You can't run actions between conditions, but handle things
separately. Something like below.
jari
BAN_REGEXP = "(parceiro\.com)"
:0 c
*$ \/$BAN_REGEXP
# Add text to the beginning of message
:0 fh
* Subject:\/.*
| formail -rt -I "Subject: [message rejected] $MATCH" ; \
echo "You domain [$rejected] is in the blacklist"; echo
# "return to sender"
:0
| formail -rkb | $SENDMAIL -oi -t
}
:0
*$ 1^1 \/$BAN_REGEXP
*$ -1^1 ^Subject:.*$BAN_REGEXP
/dev/null