[wp-hackers] header in email for filtering

Michael Leuchtenburg michael at slashhome.org
Tue Sep 14 18:04:54 UTC 2004


Noticed an error in my patch - missed out the newline on the header. 
Minor, but annoying. Here's an updated version that is correct.


-- 
Michael Leuchtenburg  |  http://slashhome.org/
cell: 413.433.0739
-------------- next part --------------
Index: functions.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-includes/functions.php,v
retrieving revision 1.159
diff -u -r1.159 functions.php
--- functions.php	10 Sep 2004 10:55:44 -0000	1.159
+++ functions.php	13 Sep 2004 23:34:04 -0000
@@ -985,7 +985,8 @@
 
 	$message_headers = "MIME-Version: 1.0\r\n"
 		. "$from\r\n"
-		. "Content-Type: text/plain; charset=\"" . get_settings('blog_charset') . "\"\r\n";
+		. "Content-Type: text/plain; charset=\"" . get_settings('blog_charset') . "\"\r\n"
+		. "X-Blog: Wordpress $wp_version: \"$blogname\"\r\n";
 
 	@mail($user->user_email, $subject, $notify_message, $message_headers);
    
@@ -1685,4 +1686,4 @@
     start_wp(true);
 }
 
-?>
\ No newline at end of file
+?>


More information about the hackers mailing list