Functions
Copyright (c) 2007-2009 The NaSMail Project This file is part of NaSMail Mobi plugin.
This plugin is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This plugin is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with plugin; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Detects mobile browsers
Browsers that are considered mobile: Opera Mini * Opera/8.01 (J2ME/MIDP; Opera Mini/3.1.7196/1704; en; U; ssr) * Opera/9.50 (J2ME/MIDP; Opera Mini/4.0.9800/209; U; en) * Opera/9.50 (J2ME/MIDP; Opera Mini/4.1.11355/308; U; en) SymbianOS (since 1.2) * Mozilla/5.0 (SymbianOS/9.1; U; en-us) AppleWebKit/413 (KHTML, like Gecko) Safari/413 Windows Mobile 6 (since 1.2.1) * Mozilla/4.0 (compatible; MSIE 6.0; Windows CE; IEMobile 6.12) Vodafone/1.0/HTC_s710/1.22.172.3 iPhone (since 1.2.2) * Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Version/3.0 Mobile/1C28 Safari/419.3 SEMC-Browser (since 1.2.2) * SonyEricssonK700i/R2CA SEMC-Browser/4.0.3 Profile/MIDP-2.0 Configuration/CLDC-1.1 NetFront (since 1.2.2) * SonyEricssonK810i/R1KG Browser/NetFront/3.3 Profile/MIDP-2.0 Configuration/CLDC-1.1 Novarra Vision WAP gateway (since 1.2.2) * Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.7) Gecko/20060909 Firefox/1.5.0.7 Novarra-Vision/6.9 Android (since 1.2.3, Android SDK browser strings) * Mozilla/5.0 (Linux; U; Android 1.1; en-us; generic) AppleWebKit/525.10+ (KHTML, like Gecko) Version/3.0.4 Mobile Safari/523.12.2 * Mozilla/5.0 (Linux; U; Android 2.0; ld-us; sdk Build/ECLAIR) AppleWebKit/530.17 (KHTML, like Gecko) Version/4.0 Mobile Safari/530.17 If you want to include other browsers, report browser's user agent string to plugin developers.
Callback function used in option filtering
Switches to frameless layout if mobile browser is detected
Reads user preferences and sets mobile browser preferences
Controls image display on login page.
Filters compose preferences
Creates option block in Display Prefereces and hides conflicting options
Documentation generated on Sun, 22 Nov 2009 17:36:31 +0200 by phpDocumentor 1.4.3