[TYPO3-dev] quoted-printable encoded email subject
Ivan Kartolo
ivan.kartolo at dkd.de
Sun Mar 22 01:06:41 CET 2009
Hi devs,
before I'm posting a bug and a patch in bugtracker, I want to have some
of your comments.
Based on RFC 1342 [1], a quoted-printable encoded email subject must
have the following structure:
"=" "?" charset "?" encoding "?" encoded-text "?" "="
The encodeHeader function in t3lib_div (and quoted_printable function)
does this really good. Until if the last character of the encoded-text
is a question mark ("?"). (thanks to Michiel Roos for reporting this [2]).
The question is, what if question mark ("?") is also found in the middle
of encoded-text? I think it's also not complied the RFC 1342.
here are some solutions, which I can think of:
1. patch direct_mail, which search for question mark in the subject and
encode these before sending them to encodeHeader function.
2. patch quoted_printable function, so that ASCII 63 ("?") will also be
encoded.
I would like to hear your comments, since I'm not sure whether question
mark is prohibited in quoted_printable encoded text...
[1] http://tools.ietf.org/html/rfc1342
[2] http://bugs.typo3.org/view.php?id=10678
Regards,
--
Ivan Kartolo
Certified TYPO3 Integrator
Want to support the development of Direct Mail?
- Report some bugs (http://bugs.typo3.org)
- Send me patch
- Send me some donation per PayPal to ivan.kartolo(at)gmail(dot)com
More information about the TYPO3-dev
mailing list