### Eclipse Workspace Patch 1.0
#P mimemail
Index: mimemail.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/mimemail/mimemail.inc,v
retrieving revision 1.53
diff -u -r1.53 mimemail.inc
--- mimemail.inc	12 Sep 2010 15:57:20 -0000	1.53
+++ mimemail.inc	20 Oct 2010 09:04:07 -0000
@@ -301,7 +301,7 @@
     // todo: remove this preg_replace once filter_xss() is properly handling
     // direct descendant css selectors '>' in inline CSS. For now this cleans
     // up our plain text part. See mimemail #364198, drupal #370903
-    $text = preg_replace('|<style.*</style>|mis', '', $body);
+    $text = preg_replace('|<style.*?</style>|mis', '', $body);
     $text = drupal_html_to_text($text);
   }
   if ($plaintext) {
