Browse Source

Identify SquirrelMail with User-Agent, not X-Mailer. Some researching learns
that User-Agent is more accepted as the new standard.

Thijs Kinkhorst 22 years ago
parent
commit
c416f80eb4
1 changed files with 2 additions and 2 deletions
  1. 2 2
      class/deliver/Deliver.class.php

+ 2 - 2
class/deliver/Deliver.class.php

@@ -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)) {