### Eclipse Workspace Patch 1.0
#P mimemail
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	6 Sep 2010 18:17:51 -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', ''), 'mimemail') === FALSE) {
       variable_set('smtp_library', drupal_get_filename('module', 'mimemail'));
     }
   }
   else {
-    if (strpos(variable_get('smtp_library', ''), 'mimemail')) {
+    if (strpos(variable_get('smtp_library', ''), 'mimemail') !== FALSE) {
       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.51
diff -u -r1.51 mimemail.inc
--- mimemail.inc	12 Aug 2010 10:35:23 -0000	1.51
+++ mimemail.inc	6 Sep 2010 18:17:51 -0000
@@ -120,7 +120,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;
     }
     // The $url is a relative file path, continue processing.
@@ -525,7 +525,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.50
diff -u -r1.50 mimemail.module
--- mimemail.module	12 Aug 2010 11:06:18 -0000	1.50
+++ mimemail.module	6 Sep 2010 18:17:51 -0000
@@ -252,7 +252,7 @@
  * @return
  *   Returns the resultss of the call to mimemail().
  */
-if (strpos(variable_get('smtp_library', ''), 'mimemail')
+if (strpos(variable_get('smtp_library', ''), 'mimemail') !== FALSE
   && !function_exists('drupal_mail_wrapper')) {
 
   function drupal_mail_wrapper(&$message) {
