### Eclipse Workspace Patch 1.0
#P mimemail
Index: theme/mimemail-message.tpl.php
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/mimemail/theme/mimemail-message.tpl.php,v
retrieving revision 1.1
diff -u -r1.1 mimemail-message.tpl.php
--- theme/mimemail-message.tpl.php	21 Apr 2010 01:07:18 -0000	1.1
+++ theme/mimemail-message.tpl.php	12 Sep 2010 16:28:31 -0000
@@ -16,7 +16,7 @@
     </style>
     <?php endif; ?>
   </head>
-  <body id="mimemail-body">
+  <body id="mimemail-body" <?php if ($mailkey): print 'class="'. $mailkey .'"'; endif; ?>>
     <div id="center">
       <div id="main">
         <?php print $body ?>
Index: theme/mimemail.theme.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/mimemail/theme/mimemail.theme.inc,v
retrieving revision 1.8
diff -u -r1.8 mimemail.theme.inc
--- theme/mimemail.theme.inc	12 Sep 2010 16:11:58 -0000	1.8
+++ theme/mimemail.theme.inc	12 Sep 2010 16:28:31 -0000
@@ -56,4 +56,6 @@
   $css = wordwrap($css, 700);
   $variables['css'] = $css;
 
+   // Process mailkey to be a proper CSS class.
+  $variables['mailkey'] = 'mail-'. str_replace('_', '-', $variables['mailkey']);
 }
