Index: includes/mimemail.admin.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/mimemail/includes/mimemail.admin.inc,v
retrieving revision 1.1
diff -u -r1.1 mimemail.admin.inc
--- includes/mimemail.admin.inc	22 Feb 2009 20:55:46 -0000	1.1
+++ includes/mimemail.admin.inc	11 Mar 2010 18:35:37 -0000
@@ -16,12 +16,12 @@
   // override the smtp_library value if mimemail is chosen to handle all mail
   // this will cause drupal_mail to call mimemail()
   if (variable_get('mimemail_alter', 0)) {
-    if (!strpos(variable_get('smtp_library', ''), 'mimemail')) {
+    if (strpos(variable_get('smtp_library', '') === FALSE, 'mimemail')) {
       variable_set('smtp_library', drupal_get_filename('module', 'mimemail'));
     }
   }
   else {
-    if (strpos(variable_get('smtp_library', ''), 'mimemail')) {
+    if (strpos(variable_get('smtp_library', '') !== FALSE, 'mimemail')) {
       db_query("DELETE FROM {variable} WHERE name = 'smtp_library'");
     }
   }
Index: mimemail.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/mimemail/mimemail.inc,v
retrieving revision 1.40
diff -u -r1.40 mimemail.inc
--- mimemail.inc	23 Feb 2009 16:11:19 -0000	1.40
+++ mimemail.inc	11 Mar 2010 18:35:37 -0000
@@ -114,7 +114,7 @@
     $url = _mimemail_url($url, 'TRUE');
 
     // If the $url is absolute, we're done here.
-    if (strpos($url, '://') || preg_match('!mailto:!', $url)) {
+    if (strpos($url, '://') !== FALSE || preg_match('!mailto:!', $url)) {
       return $url;
     }
     else {
@@ -493,7 +493,7 @@
   $url = urldecode($url);
 
   // If the URL is absolute or a mailto, return it as-is.
-  if (strpos($url, '://') || preg_match('!mailto:!', $url)) {
+  if (strpos($url, '://') !== FALSE || preg_match('!mailto:!', $url)) {
     $url = str_replace(' ', '%20', $url);
     return $url;
   }
Index: mimemail.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/mimemail/mimemail.module,v
retrieving revision 1.46
diff -u -r1.46 mimemail.module
--- mimemail.module	20 May 2009 23:37:26 -0000	1.46
+++ mimemail.module	11 Mar 2010 18:35:37 -0000
@@ -263,7 +263,7 @@
  * @return
  *   Returns the resultss of the call to mimemail().
  */
-if (strpos(variable_get('smtp_library', ''), 'mimemail')
+if (strpos(variable_get('smtp_library', '') !== FALSE, 'mimemail')
   && !function_exists('drupal_mail_wrapper')) {
 
   function drupal_mail_wrapper(&$message) {
