procmail
[Top] [All Lists]

Re: ISO something in Subject

2004-10-22 06:59:43
Michelle Konzack wrote:

Hello,
I have excessive Filtering on my FileServer and runing into trouble
if I get Messages with Subjects like:

Subject: Norbert Nienebuck ist =?ISO-8859-2?Q?au=DFer_Haus=2E?=

Question:   How can I remove this Encoding-Shit ?

Curently I try something like:

:0 fh
* ^Subject:.*(ISO-8859)
| sed -e s/=?ISO-8859-*[0-9]?Q?// -e s/_/\ / -e s/=DF/ß/ -e s/=2E/./ -e s/?=//

It works, but is not flexible enough...
This only "works" as long as the mail is encoded in ISO-8859-1, or the mailer somehow assumes ISO-8859-1 even if the specified encoding is US-ASCII. If you want to eliminate the encoded headers you could transcode the whole message to UTF-8 and change the encoding header accordingly.

--
Klaus Johannes Rusch
KlausRusch(_at_)atmedia(_dot_)net
http://www.atmedia.net/KlausRusch/


____________________________________________________________
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


<Prev in Thread] Current Thread [Next in Thread>