Autor: Michael Haardt Data: A: exim-users Assumpte: Re: [Exim] New 4.202 Snapshot - please test
> Michael - I'm sure you'll want to look at the rfc2047_decode function.
It does not check Section 2 of RFC 2047:
An 'encoded-word' may not be more than 75 characters long, including
'charset', 'encoding', 'encoded-text', and delimiters.
IMHO, if it is not a legal MIME word, it is to be taken literally,
which is _not_ an error. Too long MIME words aren't MIME words, but
literal text. Your code disagrees with me there elsewhere, too:
Subject: =?iso-8859-1?q?=?= =?iso-8859-1?q?=40?=
The first is obviously not a legal word (missing hex data after the =),
so the result after decoding should be:
Subject: =?iso-8859-1?q?=?= @
Your code appears to return an error. I don't think there should be
any errors but iconv() failing.