I have a recipe that works in most cases. It's goal is to see if the
contents of the subject line is equal to the envelope sender address.
I am using ?? to compare the 2 variables. Works most of the time, fails with
SUBJECT=davidhobbes(_at_)abc(_dot_)com
SENDER=dhobbes(_at_)abc(_dot_)com
:0 fh
* $SUBJECT ?? $SENDER
| formail -rt \
-A"X-Unsubscribe: change(_at_)internet-tools(_dot_)com" \
-I "Subject: Address in Subject line is same as From line" \
; sed -e "s/\$LIST/$BASELIST/g" \
-e "s/\$SENDER/$SENDER/g" \
-e "s/\$DOMAIN/$DOMAIN/g" \
-e "s/\$SUBJECT/$SUBJECTLINE/g" \
<change_err_2.msg
Short of using the shell test function, is there a way within
Procmail to compare variables for equalness ?
Thanks for any insights.
mark
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail