Просмотр исходного кода

Added "User-Agent" to possible headers with the mailer information.
There might be more...

antipode 23 лет назад
Родитель
Сommit
50a0301fa9
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/read_body.php

+ 1 - 1
src/read_body.php

@@ -589,7 +589,7 @@
 
 
     if ($show_xmailer_default) {
     if ($show_xmailer_default) {
         fputs ($imapConnection, sqimap_session_id() .
         fputs ($imapConnection, sqimap_session_id() .
-               " FETCH $passed_id BODY.PEEK[HEADER.FIELDS (X-Mailer)]\r\n");
+               " FETCH $passed_id BODY.PEEK[HEADER.FIELDS (X-Mailer User-Agent)]\r\n");
         $read = sqimap_read_data ($imapConnection, sqimap_session_id(), true, 
         $read = sqimap_read_data ($imapConnection, sqimap_session_id(), true, 
                                   $response, $readmessage);
                                   $response, $readmessage);
         $mailer = substr($read[1], strpos($read[1], " "));
         $mailer = substr($read[1], strpos($read[1], " "));