NaSMail HTML Mail Plugin (modified SquirrelMail plugin version) Copyright (c) 2004-2005 Paul Lesneiwski <pdontthink@angrynerds.com> Copyright (c) 2006-2009 The NaSMail Project Licensed under the GNU GPL. For full terms see the file COPYING.
load configuration
Detects used browser from HTTP_USER_AGENT string
Checks if htmlarea can be used in selected browser.
Adds html option block to advanced preferences
Changes outgoing message format to include multipart
html and text parts if needed
Checks if browser supports used html editor engine
Inserts controls on the compose page that let the user switch between HTML and text on the fly.
Adds buttons to NaSMail 1.3+ compose form
Function is used to process NaSMail 1.3+ compose_form_process hook actions
Turns off spellcheck plugin when the user is composing HTML-formatted email, since spellcheck will choke on the HTML. This function also reformats the message body as needed (such as getting the HTML part to edit if user settings demand it).
Enables display of emoticons on compose screen if possible
Fixes urls in html emails
Convert relative URIs to absolute; also removes URIs to download.php (embedded images, etc) until we find the time to code a way to forward on those images
Inserts extra JavaScript at bottom of compose page that is needed by the
enhanced editor
"Turns on" this plugin if the compose page is currently
being shown
Loads html_mail preferences
Adds buttons to compose form in Notes plugin
Function is used to process Notes plugin notes_form_process hook actions
Adds html option block to compose preferences
Converts array with emoticons to html tags
Do the actual insertion of the enhanced text editor
Also check that this plugin is in the correct order in $plugins array
Show emoticons on screen
Converts html entities to utf-8
In PHP 5.0.0+ uses html_entity_decode() function. Function was introduced in PHP 4.3.0+, but it handles utf-8 only in 5.0.0 Beta1 and later. In older versions internal NaSMail functions are used.
Wraps text at $wrap characters while preserving HTML tags
Has a problem with special HTML characters, so call this before you do character translation.
Specifically, ' comes up as 5 characters instead of 1. This should not add newlines to the end of lines.
Documentation generated on Sun, 22 Nov 2009 17:36:31 +0200 by phpDocumentor 1.4.3