? 448670-45-1-mimemail-D6.patch ? 448670-45-2-mimemail-D6.patch Index: theme/mimemail.theme.inc =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/mimemail/theme/mimemail.theme.inc,v retrieving revision 1.2 diff -u -p -r1.2 mimemail.theme.inc --- theme/mimemail.theme.inc 10 Aug 2009 17:53:39 -0000 1.2 +++ theme/mimemail.theme.inc 21 Mar 2010 04:46:19 -0000 @@ -43,5 +43,9 @@ function template_preprocess_mimemail_me if (file_exists($style)) $css .= file_get_contents($style); } - $variables['css'] = str_replace(' ','', str_replace("\n", '', $css)); + // replace a combinations of tabs, newlines or (multiple) spaces with a single space. + $css = preg_replace('/(\r|\n|\t|\s){2,}/', ' ', $css); + + $css = wordwrap($css, 700); // wordwrap to adhere to RFC821 + $variables['css'] = $css; }