Hallo Matthias und *, Vor ner halben Stunde sind bei mir 5 verd�chtieg E-mails aufgeschlagen die von keinem SPAMFILTER aufgehalten wurden... Nach ner annalyse mu�te ich feststellen das Microsoft Outlook Express mal wieder Opfer eines *.vbs oder anderen Virus wurde...
Sofort in meinem Liste "reply-type=original" eingetragebn und *PATSCH*
__( '/home/michelle.konzack/log/tdmailbody/2005-05.log' )_____________
/
| 2005-05-18 08:36:59 : (amb5.com) Offshore medical wholesale, Tadalafil
| 2005-05-18 08:37:07 : (ju18) it`s julie here
| 2005-05-18 08:37:11 : (ju18) it`s julie here
| 2005-05-18 09:05:05 : (openrefi.net) Application approval #472172758MS
| Wed, 18 May 2005 15:02:14 -0800
| 2005-05-18 16:07:09 : () Blair Chaar
| 2005-05-18 16:07:17 : () Allianora Beal
| 2005-05-18 16:07:20 : () Cong Charron
| 2005-05-18 16:07:23 : () Cynthya Arnone
| 2005-05-18 16:07:26 : () Bernardo Belzile
| 2005-05-18 16:07:30 : () Coraline Bezdel
| 2005-05-18 16:07:35 : () Celka Betsill
| 2005-05-18 16:07:48 : () Blair Beshir
| 2005-05-18 16:07:52 : () Carley Berger
| 2005-05-18 16:07:55 : () Cedric Camplone
| 2005-05-18 16:07:58 : () Blaine Bangia
| 2005-05-18 16:08:05 : () Celestine Bebee
| 2005-05-18 16:08:09 : () Chastity Bastien
| 2005-05-18 16:08:12 : () Angelita Ahlberg
| 2005-05-18 16:08:15 : () Adrien Bissette
| 2005-05-18 16:08:18 : () Antoine Blackshire
| 2005-05-18 16:08:21 : () Bevyn Benner
| 2005-05-18 16:08:25 : () Caron Brewton
| 2005-05-18 16:08:28 : () Adrie Beggs
| 2005-05-18 16:08:31 : () Bosiljka Abdul-Nour
| 2005-05-18 16:08:38 : () Ardeen Burbidge
| 2005-05-18 16:08:41 : () Amos Boudin
| 2005-05-18 16:08:44 : () Adriane Boult
| 2005-05-18 16:08:48 : () Correna Bredfeldt
| 2005-05-18 16:08:51 : () Cen Bickford
| 2005-05-18 16:08:54 : () Bakel Bernier
\______________________________________________________________________
Treffer versenkt !
Nur wie man sieht ist am anfanfg die () noch mit nem TAG gef�llt und
jetzt nicht mehr...
Die Idee mit
__( '/home/michelle.konzack/bin/tdmailbody' )_________________________
/
<snip>
| if [ -f $LIST$1 ] ; then
| SUBJECT_ORIG=`cat $TMP_FILE | /usr/bin/formail -zx Subject:`
| TEST=`fgrep --quiet --ignore-case --file=$LIST$1 $TMP_FILE`
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| if [ $? -eq 0 ] ; then
| if [ "$2" == "" ] ; then SUB="***SPAM_body***" ; else SUB=$2 ; fi
| cat $TMP_FILE | formail -i "Subject: $SUB $SUBJECT_ORIG" -i "X-TD
| MailBody: $VAL"
| rm -f $TMP_FILE
| DATE=`date "+%Y-%m-%d %H:%M:%S"`
| echo "$DATE : ($VAL) $SUBJECT_ORIG" >>$LOGDIR/`date "+%Y-%m"`.log
| exit 0
| fi
| fi
<snip>
\______________________________________________________________________
war zwar gut und schneller, aber da ich in den Logfiles den <TAG> haben
will, mu� wohl doch �ber 'cat' ... gehen:
__( '/home/michelle.konzack/bin/tdmailbody.old' )_____________________
/
<snip>
| if [ -f $LIST$1 ] ; then
| SUBJECT_ORIG=`cat $TMP_FILE | /usr/bin/formail -zx Subject:`
| (cat $LIST$1; echo ) |
^^^^^^^^^^^^^^^^^^^^^^
| while read VAL
^^^^^^^^^^^^^^
| do
| if [ "$VAL" == "" ] ; then exit 1 ; fi
| TEST=`fgrep --ignore-case "$VAL" $TMP_FILE`
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| if [ $? -eq 0 ] ; then
| if [ "$2" == "" ] ; then SUB="***SPAM_body***" ; else SUB=$2 ; f
| i
| cat $TMP_FILE | formail -i "Subject: $SUB $SUBJECT_ORIG" -i "X-
| TDMailBody: $VAL"
| rm -f $TMP_FILE
| DATE=`date "+%Y-%m-%d %H:%M:%S"`
| echo "$DATE : ($VAL) $SUBJECT_ORIG" >>$LOGDIR/`date "+%Y-%m"`.lo
| g
| exit 0
| fi
| done
| fi
<snip>
\______________________________________________________________________
Der rest funktioniert prima.
Auch mein 'tdmailbody-mutt' macht fortschritte, denn ich kann
jetzt, wenn ich eine neue ungefilterte SPAM entdecke, in mutt
eine Funktionstate dr�cken die mir alle in der SPAM message
vorhandenen URL's anzeigt (mit 'dialog'), den/die gew�nschten
URL(s) selektieren und in die Liste automatisch eintragen.
Doppelte Eintr�ge werden automatisch korrigiert.
Der Filter erwischt pro Tag rund 30-500 (von 200 bis 17.000)
solcher Messasges...
Anmerkung: Es k�nnen mehrere Listen verwendet werden.
Greetings
Michelle
--
Linux-User #280138 with the Linux Counter, http://counter.li.org/
Michelle Konzack Apt. 917 ICQ #328449886
50, rue de Soultz MSM LinuxMichi
0033/3/88452356 67100 Strasbourg/France IRC #Debian (irc.icq.com)
signature.pgp
Description: Digital signature

