Hello Per,
Am 2004-10-24 09:28:48, schrieb Per Jessen:
Note: you have a funny name, because I have a friend in
Offenburg/Germany with the Name "Peer Janssen" :-)
It did work but only after I removed the backslashes, which I don't
understand.
But never mind, if Michelle just wants to get rid of RFC2047 encoded strings,
this should(!) be it:
sed -e 's/=?[^? ][^? ]*?[BbQq]?[^?]*?=//g'
Not directly right, because I like to decode iso-8859-1, iso-8859-15 and
Windows-1252 for further use.
Curently I have:
____( '/home/michelle/.procmail/FLT_rfc2047' )________________________
/
| VERBOSE=on
|
| :0 c
| * ^Subject:.*=?ISO-8859-1?b?|=?ISO-8859-15?b?|=?WINDOWS-1252?b?
| {
| SUB=`formail -zxSubject: | sed -e "s/=?.*[ISOiso8591WNDwnd2-]?.*[bB]?//" -e
"s/?=//" |base64-decode`
| :0 fh
| |formail -i "Subject: *****Base64***** $SUB"
|
| VERBOSE=off
| :0
| ATT_SPAM/Base64/
| }
|
| :0 c
| * ^Subject:.*=?ISO-8859-1?q?|=?ISO-8859-15?q?|=?WINDOWS-1252?q?
| {
| SUB=`formail -zxSubject: | sed -e "s/=?.*[ISOiso8591WNDwnd2-]?.*[qQ]?//g"
-e "s/?=//g" -e "s/_/ /g" -e "s/=27/'/g" -e "s/=29/)/g" -e "s/=2E/./g" -e
"s/=3A/:/g" -e "s/=A0/ /g" -e "s/=DF/ß/g" -e "s/=E9/é/g"`
| :0 fh
| |formail -i "Subject: *****QuotedP***** $SUB"
|
| VERBOSE=off
| :0
| ATT_SPAM/QuotedP/
| }
|
| VERBOSE=off
\______________________________________________________________________
But now I have gotten 3 messages from debian-user-french and 2 messages
from fr-parl(_at_)ffii(_dot_)org and they are marked as "*****Base64*****" but
must
be "*****QuotedP*****"
One of the message is:
____(
'/home/michelle/Maildir/ATT_SPAM/Base64/new/1098614798.14024_0.samba3.private'
)_
/
| From: xxxxxxx xxxxxx <xxxxx(_at_)lapinbleu(_dot_)org>
| To: linux(_at_)tux(_dot_)u-strasbg(_dot_)fr
| Date: Sun, 24 Oct 2004 12:42:42 +0200
| Old-Subject: Re: Carte =?iso-8859-1?q?vid=E9o_non?=
| reconnue...(Knoppix 3.3 sur Vaio R600MX)
| Subject: *****Base64*****
\______________________________________________________________________
Question: How must I quote "=?ISO-8859-1?q?" that it works ?
I have tried "\=\?ISO-8859-1\?q\?" but it does not work. :-(
And then, why does it not put the $SUB back into the Subject ?
The two commands
SUB=`formail -zxSubject: | sed -e "s/=?.*[ISOis...
are working fine.
/Per
Grüße aus Strasbourg
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
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail