This commit has been accessed 548 times via Git panel.
commit 3bc07d4baea15a4c3b1bd885e68f674c155c4b24
tree 635a5db0747e4ea0ee1d2e993a5dec0c1d0821db
parent f18b69e8c1743da3e7443573a34a42c33c8850d3
author Engels Antonio <engels@majcms.org> 1298962566 +0800
committer Engels Antonio <engels@majcms.org> 1298962566 +0800
Add User-Agent as fallback for X-Mailer
diff --git a/read.php b/read.php
index 2b33d7b..2a3c9d6 100644
--- a/read.php
+++ b/read.php
@@ -42,6 +42,11 @@ if (isset($_POST['msg']) and !empty($_POST['msg']) and is_numeric($_POST['msg'])
$header_mailer = $header_raw_line;
}
+
+ if (strstr($header_raw_line,"User-Agent:")) {
+
+ $header_user_agent = $header_raw_line;
+ }
}
$mbox_sort = imap_sort($mbox,"SORTARRIVAL",1);
@@ -74,6 +79,10 @@ if (isset($_POST['msg']) and !empty($_POST['msg']) and is_numeric($_POST['msg'])
echo "<br>$header_mailer";
}
+ if (($header_user_agent != "") and ($header_mailer == "")) {
+ echo "<br>$header_user_agent";
+ }
+
echo "</div>";
tree 635a5db0747e4ea0ee1d2e993a5dec0c1d0821db
parent f18b69e8c1743da3e7443573a34a42c33c8850d3
author Engels Antonio <engels@majcms.org> 1298962566 +0800
committer Engels Antonio <engels@majcms.org> 1298962566 +0800
Add User-Agent as fallback for X-Mailer
diff --git a/read.php b/read.php
index 2b33d7b..2a3c9d6 100644
--- a/read.php
+++ b/read.php
@@ -42,6 +42,11 @@ if (isset($_POST['msg']) and !empty($_POST['msg']) and is_numeric($_POST['msg'])
$header_mailer = $header_raw_line;
}
+
+ if (strstr($header_raw_line,"User-Agent:")) {
+
+ $header_user_agent = $header_raw_line;
+ }
}
$mbox_sort = imap_sort($mbox,"SORTARRIVAL",1);
@@ -74,6 +79,10 @@ if (isset($_POST['msg']) and !empty($_POST['msg']) and is_numeric($_POST['msg'])
echo "<br>$header_mailer";
}
+ if (($header_user_agent != "") and ($header_mailer == "")) {
+ echo "<br>$header_user_agent";
+ }
+
echo "</div>";