1. style and script blocks
When $show_html_default is set to SMPREF_OFF and html email doesn't enclose style or script blocks in comments, current (20007-07-23) 1.4.11-svn and 1.5.2-svn snapshots display style and script contents inline.
2. Visual agents imply new lines to header and div tags. SquirrelMail does that only to paragraph and line break tags. Devel adds new lines on <div>, but only in compose.
3. You have two code blocks with similar functions in compose.php newMail() (Id: 12542 lines 707-710) and mime.php formatBody() (Id: 12396 lines 341-354). Line numbers are from 1.4.11-svn. Both blocks do same thing in different ways and compose.php block differs between stable and devel version.
You can't rely on presence of </p> tag.
Paragraphs are smashed together in devel.
4. Tab (\t) is one space in html. When translateText() parses html emails, it applies eight spaces.
5. If you convert < to < before calling strip_chars(), strip_chars() will eat < in '<</p>'. In PHP 5.2.0 strip_chars dumps text after '<</p>'. Haven't tested other versions.
Log in to post a comment.