*** wp-mail.php~	2007-09-18 09:32:22.000000000 -0700
--- wp-mail.php	2007-10-24 01:48:10.000000000 -0700
***************
*** 121,126 ****
--- 121,129 ----
  	if (stripos($content_transfer_encoding, "quoted-printable") !== false) {
  		$content = quoted_printable_decode($content);
  	}
+ 	if (stripos($content_transfer_encoding, "base64") !== false) {
+ 		$content = base64_decode($content);
+ 	}
  
  	// Captures any text in the body after $phone_delim as the body
  	$content = explode($phone_delim, $content);
***************
*** 137,142 ****
--- 140,153 ----
  
  	if ($post_title == '') $post_title = $subject;
  
+ 	if (stripos($content_transfer_encoding, "base64") !== false) {
+ 		// $post_title might start with =?utf-8?B?
+ 		if (substr($post_title, 0, 10) == "=?utf-8?B?") {
+ 			$post_title = substr($post_title, 10);
+ 		}
+ 		$post_title = base64_decode($post_title);
+ 	}
+ 
  	if (empty($post_categories)) $post_categories[] = get_option('default_email_category');
  
  	$post_category = $post_categories;
