* Neil Sandow, Pharm.D. <rxlist(_at_)rxlist(_dot_)com> [010730 03:54]:
Hi,
Trying to filter the sircam virus messages, place in a folder, and send
out a brief text message to the offending machine.
My script:
:0c
* 1^0 ^Content-Type:.*(multipart|attachment)
* 1^0 B ?? Hi\! How are you(\?|=3F)
* 1^0 B ?? I send you this file in order to have your advice
* 1^0 B ?? See you later(\.|=2E) Thanks
* 1^0 B ?? Hola como estas *\?
* 1^0 B ?? Te mando este archivo para que me des tu punto de vista
* 1^0 B ?? Nos vemos pronto, gracias\.
* 1^0 B ?? I hope you like the file that I send( t)?o you
* 1^0 B ?? This is the file with the information that you ask for
|(formail -r -A "Precedence: junk"\
-I"Subject: Your Machine is infected with the Sircam Virus" \
cat $FILEDIR/sircam.txt )|$SENDMAIL -t
:0A:
sircam
The script seems to be filtering OK and segregating into a single folder
but my outbound message is not getting out. From my ./procmail/log :
(formail: Can't open (formail
procmail: Error while writing to "(formail"
procmail: Skipped "-I"Subject: Your Machine is infected with the Sircam
Virus" \"
procmail: Skipped "$FILEDIR/sircam.txt )|$SENDMAIL -t"
From rxlist(_at_)rxlist(_dot_)com Fri Jul 27 11:03:48 2001
Subject: 0401N49054 (fwd)
Folder: sircam
215086
Get rid of those extra newlines! I've rewritten your recipe like this:
:0c
* 1^0 ^Content-Type:.*(multipart|attachment)
* 1^0 B ?? Hi\! How are you(\?|=3F)
* 1^0 B ?? I send you this file in order to have your advice
* 1^0 B ?? See you later(\.|=2E) Thanks
* 1^0 B ?? Hola como estas *\?
* 1^0 B ?? Te mando este archivo para que me des tu punto de vista
* 1^0 B ?? Nos vemos pronto, gracias\.
* 1^0 B ?? I hope you like the file that I send( t)?o you
* 1^0 B ?? This is the file with the information that you ask for
|(formail -r -A "Precedence: junk" \
-I"Subject: Your Machine is infected with the Sircam Virus" \
cat $FILEDIR/sircam.txt )|$SENDMAIL -t
:0A:
sircam
--
- Matt Dunford <> zoot(_at_)zotikos(_dot_)com ..
-. www.zotikos.com -- o,;-
Things fall apart; the center cannot hold
Mere anarchy is loosed upon the world
-- William Butler Yeats
--
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail