[CSCMail-Users] CVS Commit: CSCMail 1.7.x
Brought to you by:
countzer0
From: Steven K. <sk...@st...> - 2000-09-14 17:32:34
|
Changelog entry: Date: Thu Sep 14 13:28:00 EST 2000 (countzero) More lil bugfixes... 1) Added <div align="left"> and </div> to the top and bottom of all mail, to fix the bug in "broken" html viewers (such as GtkHTML and CscHTML) that don't properly reset alignment from one document to the next. If someone sent you a document with a <div align="center"> and forgot to </div> it, then all mail after that would be aligned center... not good 2) Stripped <body> </body> tags from mail and add them back in after we add our image and attachment links. Prior to this, we would simple look for </html> and then replace it with $images</html> for inline image viewing, and we would search for </body> (why??? I didn't code that part.. consistancy is a good thing people...) and replace it with $attachments</body> ... of course, if a message didn't HAVE a </body> tag, then the attachment links wouldn't show up... (some HTML mail doesn't bother with <body> </body> So, now, we strip <body> and </body> and then look for <html> and replace it with <html><body><div align="left"> and then we look for </html> and replace it with <div align="left">$images<br>$attachments</div></div></body></html> so that pretty much guarantees that everything will look right... (we do the second alignment in case the message has centered us again, since we want the attachment links and images left aligned...) TODO: Gonna play with setting up a lil table for the attachments, (like Netscape does) ... we'll see if I keep it... -CZ |