Ok, based on all samples and resources that I saw, i made a c program to fill
ps: The c program reads from stdin and write to stdout, using mimencode to
base64 and a function to uncode quotedprint and Windows-1252 subjects.
So, In my procmailrc file I have:
SUBJECT=`formail -xSubject: | mymimedecode`
*$ SUBJECT ?? Milhões pra cáça
# Works properly, but if I want to fgrep a file list of deny subjects, I would
like to compare the $SUBJECT. Any body see a way?
*$ SUBJECT ?? ? fgrep -is -f /etc/antispam/denysubjects.lst
I know I have to pass the $SUBJECT to stdin to fgrep search in the file, but
seens that I can't use a simple "shell echo" in reasons of special chars in
$SUBJECT like "!" in example.
thanks and Regards.
Brazil - SP - Limeira
procmail mailing list