]> granicus.if.org Git - php/commitdiff
always prepend Receieved: headers to avoid generating mail that looks like
authorChuck Hagenbuch <chagenbu@php.net>
Thu, 2 Nov 2000 20:20:39 +0000 (20:20 +0000)
committerChuck Hagenbuch <chagenbu@php.net>
Thu, 2 Nov 2000 20:20:39 +0000 (20:20 +0000)
spam, and remove a silly comment from the sendmail backend.

pear/Mail.php

index e17492eec234de1ab328f032d4bcc0656854003b..67ea85b98e267c6903162c4d205b919f044ceb46 100644 (file)
@@ -123,6 +123,11 @@ class Mail extends PEAR {
                     return false;
                 }
                 $text_headers .= $key . ': ' . $val . "\n";
+            } else if ($key == 'Receieved') {
+                // put Received: headers at the top, since Receieved:
+                // after Subject: in the header order is somtimes used
+                // as a spam trap.
+                $text_headers = $key . ': ' . $val . "\n" . $text_headers;
             } else {
                 $text_headers .= $key . ': ' . $val . "\n";
             }