Explorar o código

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

Thijs Kinkhorst %!s(int64=22) %!d(string=hai) anos
pai
achega
c416f80eb4
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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)) {