Index: theme/mimemail.theme.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/mimemail/theme/mimemail.theme.inc,v
retrieving revision 1.9
diff -u -r1.9 mimemail.theme.inc
--- theme/mimemail.theme.inc	12 Sep 2010 16:32:47 -0000	1.9
+++ theme/mimemail.theme.inc	23 Sep 2010 20:35:21 -0000
@@ -26,7 +26,8 @@
  */
 function template_preprocess_mimemail_message(&$variables) {
   $theme = variable_get('theme_default', NULL);
-  $mailstyle = drupal_get_path('theme', $theme) .'/mail.css';
+  $themepath = drupal_get_path('theme', $theme);
+  $mailstyle = $themepath .'/mail.css';
 
   // Check for the existence of a mail.css file in the current theme folder
   if (@file_exists($mailstyle)) {
@@ -35,8 +36,22 @@
   // 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;
+        }
+      }
+    }
+    // Grab local.css if it exists (fusion based themes)
+    $local_css = $themepath . '/css/local.css';
+    if (@file_exists($local_css)) {
+       $css_list['all']['theme'][$local_css] = true;
+    }
     $styles = preg_replace('|<link.*href="'. base_path()
-                          .'([^"?]*)[?"].*|', '\1', drupal_get_css());
+                          .'([^"?]*)[?"].*|', '\1', drupal_get_css($css_list));
   }
 
   // Process each style sheet
