Index: theme/mimemail.theme.inc
===================================================================
RCS file: /cvs/drupal/contributions/modules/mimemail/theme/mimemail.theme.inc,v
retrieving revision 1.2
diff -u -r1.2 mimemail.theme.inc
--- theme/mimemail.theme.inc	10 Aug 2009 17:53:39 -0000	1.2
+++ theme/mimemail.theme.inc	15 Mar 2010 11:20:55 -0000
@@ -34,8 +34,10 @@
   // If no mail.css was found, gather all style sheets
   if (!file_exists($styles)) {
     // embed a version of all style definitions
-    $styles = preg_replace('|<link.*href="'. base_path()
-                           .'([^"?]*)[?"].*|', '\1', drupal_get_css());
+    $patterns = array('|<link.*media="print"*([^"?]*)[?"].*|',
+                      '|<link.*href="'. base_path() .'([^"?]*)[?"].*|');
+    $replaces = array('', '\1');
+    $styles = preg_replace($pattern, $replaces, drupal_get_css());
   }
 
   // Process each style sheet
