Identify SquirrelMail with User-Agent, not X-Mailer. Some researching learns
authorkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 6 Jan 2003 19:02:00 +0000 (19:02 +0000)
committerkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 6 Jan 2003 19:02:00 +0000 (19:02 +0000)
that User-Agent is more accepted as the new standard.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@4390 7612ce4b-ef26-0410-bec9-ea0150e637f0

class/deliver/Deliver.class.php

index adc041b..7edfce6 100644 (file)
@@ -299,9 +299,9 @@ class Deliver {
            }
        }
        /* Identify SquirrelMail */     
-       $header[] = "X-Mailer: SquirrelMail (version $version)" . $rn; 
+       $header[] = 'User-Agent: SquirrelMail/' . $version . $rn; 
        /* Do the MIME-stuff */
-       $header[] = "MIME-Version: 1.0" . $rn;
+       $header[] = 'MIME-Version: 1.0' . $rn;
        $contenttype = 'Content-Type: '. $rfc822_header->content_type->type0 .'/'.
                                          $rfc822_header->content_type->type1;
        if (count($rfc822_header->content_type->properties)) {