Ok, based on all samples and resources that I saw, i made a c program to fill
my necessities.
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:
#DECODING
SUBJECT=`formail -xSubject: | mymimedecode`
:0
*$ SUBJECT ?? Milhões pra cáça
/dev/null
# 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?
Something like
:0
*$ SUBJECT ?? ? fgrep -is -f /etc/antispam/denysubjects.lst
/dev/null
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.
=================================
Felipe Piccirilo
piccirilo(_at_)gruponet(_dot_)com(_dot_)br
Brazil - SP - Limeira
=================================
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail