### Eclipse Workspace Patch 1.0
#P mimemail
Index: theme/mimemail.theme.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/mimemail/theme/mimemail.theme.inc,v
retrieving revision 1.6
diff -u -r1.6 mimemail.theme.inc
--- theme/mimemail.theme.inc	12 Aug 2010 10:38:02 -0000	1.6
+++ theme/mimemail.theme.inc	8 Sep 2010 13:57:19 -0000
@@ -34,8 +34,17 @@
   // If no mail.css was found, gather all style sheets
   // and embed a version of all style definitions
   else {
+    $css_all = drupal_add_css();
+    $css_list = array();
+    foreach ($css_all as $media => $types) {
+      foreach ($types as $type => $file) {
+        if ($type == 'theme' && ($media == 'all' || $media == 'screen')) {
+          $css_list[$media][$type] = $file;
+        }
+      }
+    }
     $styles = preg_replace('|<link.*href="'. base_path()
-                          .'([^"?]*)[?"].*|', '\1', drupal_get_css());
+                          .'([^"?]*)[?"].*|', '\1', drupal_get_css($css_list));
   }
 
   // Process each style sheet
