quoted_printable_decode

Description

stringquoted_printable_decode
( string$str
)

This function returns an 8-bit binary string corresponding to the decoded
quoted printable string (according to » RFC2045, section 6.7, not » RFC2821, section 4.5.2, so additional periods
are not stripped from the beginning of line).

This function is similar to imap_qprint(), except this
one does not require the IMAP module to work.

As soletan at toxa dot de reported, that function is very bad and does not provide valid enquoted printable strings. While using it I saw spam agents marking the emails as QP_EXCESS and sometimes the email client did not recognize the header at all; I really lost time :(. This is the new version (we use it in the Drake CMS core) that works seamlessly:

If you do not have access to imap_* and do not want to use
»$message = chunk_split( base64_encode($message) );«
because you want to be able to read the »source« of your mails, you might want to try this:
(any suggestions very welcome!)