This commit has been accessed 386 times via Git panel.
commit 9c989ed34859dbe2b017162d87394b5c7be0bf1e
tree c9f9b8069868401afd6586a96aff0b941140e9c5
parent edd5dd6432c4b4900df62c1a75c920fca95cbe0d
author Magie Antonio <magie@majcms.org> 1358794219 +0800
committer Magie Antonio <magie@majcms.org> 1358794219 +0800
Add mailing list Precedence field header
diff --git a/add.php b/add.php
index baaffd8..e44cd24 100644
--- a/add.php
+++ b/add.php
@@ -618,9 +618,9 @@ if (isset($_FILES['file_input']) and !empty($_FILES['file_input'])) {
$ml_to = '"' . "$ml_to_firstname $ml_to_lastname" . '" <' . $ml_to . '>';
if (file_exists("$maj_data_directory/ml-reply2.txt")) {
- mb_send_mail($ml_to, $ml_subject, $ml_body, "From: $ml_from\n" . "Reply-To: $ml_reply2\n" . "References: $entry\n" . "X-Mailer: $maj_mailer");
+ mb_send_mail($ml_to, $ml_subject, $ml_body, "From: $ml_from\n" . "Reply-To: $ml_reply2\n" . "References: $entry\n" . "X-Mailer: $maj_mailer\n" . "Precedence: bulk");
} else {
- mb_send_mail($ml_to, $ml_subject, $ml_body, "From: $ml_from\n" . "References: $entry\n" . "X-Mailer: $maj_mailer");
+ mb_send_mail($ml_to, $ml_subject, $ml_body, "From: $ml_from\n" . "References: $entry\n" . "X-Mailer: $maj_mailer\n" . "Precedence: bulk");
}
}
}
@@ -706,7 +706,7 @@ if (isset($_POST['notify']) and !empty($_POST['notify']) and file_exists("$maj_d
continue;
}
- mb_send_mail($notify_to, $title_write_content, $body_write_content, "From: $notify_from\n" . "References: $entry\n" . "X-Mailer: $maj_mailer");
+ mb_send_mail($notify_to, $title_write_content, $body_write_content, "From: $notify_from\n" . "References: $entry\n" . "X-Mailer: $maj_mailer\n" . "Precedence: bulk");
}
}
}
diff --git a/index.php b/index.php
index 03e3461..26f17ce 100644
--- a/index.php
+++ b/index.php
@@ -242,13 +242,15 @@ if (isset($maj_req_entry) and !empty($maj_req_entry) and isset($_REQUEST['commen
"From: $maj_ml_from\n" .
"Reply-To: $maj_ml_reply2\n" .
"References: $maj_req_entry\n" .
- "X-Mailer: $maj_ml_mailer");
+ "X-Mailer: $maj_ml_mailer\n" .
+ "Precedence: bulk");
}
else {
mb_send_mail($maj_ml_to,$maj_ml_subject,$maj_ml_body,
"From: $maj_ml_from\n" .
"References: $maj_req_entry\n" .
- "X-Mailer: $maj_ml_mailer");
+ "X-Mailer: $maj_ml_mailer\n" .
+ "Precedence: bulk");
}
}
}
@@ -438,7 +440,8 @@ if (isset($maj_req_entry) and !empty($maj_req_entry)) {
mb_send_mail($maj_email_to,"Thanks for sharing your thoughts!",$maj_comment_thanks,
"From: $maj_from_email\n" .
"Reply-To: $maj_from_email\n" .
- "X-Mailer: $maj_mailer");
+ "X-Mailer: $maj_mailer\n" .
+ "Precedence: bulk");
}
if (file_exists("$maj_data_directory/email.txt") and !file_exists("$maj_data_directory/xscreen.txt")) {
@@ -448,7 +451,8 @@ if (isset($maj_req_entry) and !empty($maj_req_entry)) {
mb_send_mail($maj_from_email,"Pending Comment",$maj_comment_notice,
"From: $maj_from_email\n" .
"Reply-To: $maj_from_email\n" .
- "X-Mailer: $maj_mailer");
+ "X-Mailer: $maj_mailer\n" .
+ "Precedence: bulk");
}
if (!file_exists("$maj_data_directory/comments")) {
diff --git a/options.php b/options.php
index 8b1d167..1a98be7 100644
--- a/options.php
+++ b/options.php
@@ -96,7 +96,8 @@ if (isset($_POST['email']) and !empty($_POST['email']) and (file_get_contents("$
mb_send_mail($email_to, "confirm $key_email", $confirm_change,
"From: $email_from\n" .
"Reply-To: $email_from\n" .
- "X-Mailer: $maj_mailer");
+ "X-Mailer: $maj_mailer\n" .
+ "Precedence: bulk");
echo "Confirmation request sent. Check your $email_write_content inbox for details.";
}
diff --git a/reg.php b/reg.php
index 97c5b5e..59466c9 100644
--- a/reg.php
+++ b/reg.php
@@ -113,12 +113,14 @@ if (isset($_REQUEST['username']) and !empty($_REQUEST['username']) and isset($_R
mb_send_mail($email_from, "registration notice ($email)", $registered_notice,
"From: $email_from\n" .
"Reply-To: $email_from\n" .
- "X-Mailer: $maj_mailer");
+ "X-Mailer: $maj_mailer\n" .
+ "Precedence: bulk");
mb_send_mail($email_to, "password notice ($username)", $password_notice,
"From: $email_from\n" .
"Reply-To: $email_from\n" .
- "X-Mailer: $maj_mailer");
+ "X-Mailer: $maj_mailer\n" .
+ "Precedence: bulk");
$fp_new_txt = fopen("$maj_data_directory/bb-new.txt","w");
fwrite($fp_new_txt,$username);
@@ -185,7 +187,8 @@ if (isset($_REQUEST['username']) and !empty($_REQUEST['username']) and isset($_R
mb_send_mail($email_from, "confirmation notice ($email)", $confirmation_notice,
"From: $email_from\n" .
"Reply-To: $email_from\n" .
- "X-Mailer: $maj_mailer");
+ "X-Mailer: $maj_mailer\n" .
+ "Precedence: bulk");
}
else {
if (!file_exists("$maj_data_directory/members/active")) {
@@ -200,7 +203,8 @@ if (isset($_REQUEST['username']) and !empty($_REQUEST['username']) and isset($_R
mb_send_mail($email_from, "registration notice ($email)", $registered_notice,
"From: $email_from\n" .
"Reply-To: $email_from\n" .
- "X-Mailer: $maj_mailer");
+ "X-Mailer: $maj_mailer\n" .
+ "Precedence: bulk");
$password = str_rand(16);
@@ -233,7 +237,8 @@ if (isset($_REQUEST['username']) and !empty($_REQUEST['username']) and isset($_R
mb_send_mail($email_to, "password notice ($username)", $password_notice,
"From: $email_from\n" .
"Reply-To: $email_from\n" .
- "X-Mailer: $maj_mailer");
+ "X-Mailer: $maj_mailer\n" .
+ "Precedence: bulk");
$fp_new_txt = fopen("$maj_data_directory/bb-new.txt","w");
fwrite($fp_new_txt,$username);
@@ -592,7 +597,8 @@ if ($_POST['submit'] == "1") {
mb_send_mail($email_to, "confirm $key", $confirm_thanks,
"From: $email_from\n" .
"Reply-To: $email_from\n" .
- "X-Mailer: $maj_mailer");
+ "X-Mailer: $maj_mailer\n" .
+ "Precedence: bulk");
unset($err_username);
unset($err_firstname);
diff --git a/reset.php b/reset.php
index 6dd8e26..47d45ab 100644
--- a/reset.php
+++ b/reset.php
@@ -96,12 +96,14 @@ if (isset($_POST['username']) and !empty($_POST['username']) and isset($_POST['a
mb_send_mail($from_email, "password reset notice ($username)", $reset_notice,
"From: $from_email\n" .
"Reply-To: $from_email\n" .
- "X-Mailer: $maj_mailer");
+ "X-Mailer: $maj_mailer\n" .
+ "Precedence: bulk");
mb_send_mail($email, "password reset notice ($username)", $password_notice,
"From: $from_email\n" .
"Reply-To: $from_email\n" .
- "X-Mailer: $maj_mailer");
+ "X-Mailer: $maj_mailer\n" .
+ "Precedence: bulk");
if (file_exists("$maj_data_directory/members/active/$username/bb-lockout.txt")) {
unlink("$maj_data_directory/members/active/$username/bb-lockout.txt");
tree c9f9b8069868401afd6586a96aff0b941140e9c5
parent edd5dd6432c4b4900df62c1a75c920fca95cbe0d
author Magie Antonio <magie@majcms.org> 1358794219 +0800
committer Magie Antonio <magie@majcms.org> 1358794219 +0800
Add mailing list Precedence field header
diff --git a/add.php b/add.php
index baaffd8..e44cd24 100644
--- a/add.php
+++ b/add.php
@@ -618,9 +618,9 @@ if (isset($_FILES['file_input']) and !empty($_FILES['file_input'])) {
$ml_to = '"' . "$ml_to_firstname $ml_to_lastname" . '" <' . $ml_to . '>';
if (file_exists("$maj_data_directory/ml-reply2.txt")) {
- mb_send_mail($ml_to, $ml_subject, $ml_body, "From: $ml_from\n" . "Reply-To: $ml_reply2\n" . "References: $entry\n" . "X-Mailer: $maj_mailer");
+ mb_send_mail($ml_to, $ml_subject, $ml_body, "From: $ml_from\n" . "Reply-To: $ml_reply2\n" . "References: $entry\n" . "X-Mailer: $maj_mailer\n" . "Precedence: bulk");
} else {
- mb_send_mail($ml_to, $ml_subject, $ml_body, "From: $ml_from\n" . "References: $entry\n" . "X-Mailer: $maj_mailer");
+ mb_send_mail($ml_to, $ml_subject, $ml_body, "From: $ml_from\n" . "References: $entry\n" . "X-Mailer: $maj_mailer\n" . "Precedence: bulk");
}
}
}
@@ -706,7 +706,7 @@ if (isset($_POST['notify']) and !empty($_POST['notify']) and file_exists("$maj_d
continue;
}
- mb_send_mail($notify_to, $title_write_content, $body_write_content, "From: $notify_from\n" . "References: $entry\n" . "X-Mailer: $maj_mailer");
+ mb_send_mail($notify_to, $title_write_content, $body_write_content, "From: $notify_from\n" . "References: $entry\n" . "X-Mailer: $maj_mailer\n" . "Precedence: bulk");
}
}
}
diff --git a/index.php b/index.php
index 03e3461..26f17ce 100644
--- a/index.php
+++ b/index.php
@@ -242,13 +242,15 @@ if (isset($maj_req_entry) and !empty($maj_req_entry) and isset($_REQUEST['commen
"From: $maj_ml_from\n" .
"Reply-To: $maj_ml_reply2\n" .
"References: $maj_req_entry\n" .
- "X-Mailer: $maj_ml_mailer");
+ "X-Mailer: $maj_ml_mailer\n" .
+ "Precedence: bulk");
}
else {
mb_send_mail($maj_ml_to,$maj_ml_subject,$maj_ml_body,
"From: $maj_ml_from\n" .
"References: $maj_req_entry\n" .
- "X-Mailer: $maj_ml_mailer");
+ "X-Mailer: $maj_ml_mailer\n" .
+ "Precedence: bulk");
}
}
}
@@ -438,7 +440,8 @@ if (isset($maj_req_entry) and !empty($maj_req_entry)) {
mb_send_mail($maj_email_to,"Thanks for sharing your thoughts!",$maj_comment_thanks,
"From: $maj_from_email\n" .
"Reply-To: $maj_from_email\n" .
- "X-Mailer: $maj_mailer");
+ "X-Mailer: $maj_mailer\n" .
+ "Precedence: bulk");
}
if (file_exists("$maj_data_directory/email.txt") and !file_exists("$maj_data_directory/xscreen.txt")) {
@@ -448,7 +451,8 @@ if (isset($maj_req_entry) and !empty($maj_req_entry)) {
mb_send_mail($maj_from_email,"Pending Comment",$maj_comment_notice,
"From: $maj_from_email\n" .
"Reply-To: $maj_from_email\n" .
- "X-Mailer: $maj_mailer");
+ "X-Mailer: $maj_mailer\n" .
+ "Precedence: bulk");
}
if (!file_exists("$maj_data_directory/comments")) {
diff --git a/options.php b/options.php
index 8b1d167..1a98be7 100644
--- a/options.php
+++ b/options.php
@@ -96,7 +96,8 @@ if (isset($_POST['email']) and !empty($_POST['email']) and (file_get_contents("$
mb_send_mail($email_to, "confirm $key_email", $confirm_change,
"From: $email_from\n" .
"Reply-To: $email_from\n" .
- "X-Mailer: $maj_mailer");
+ "X-Mailer: $maj_mailer\n" .
+ "Precedence: bulk");
echo "Confirmation request sent. Check your $email_write_content inbox for details.";
}
diff --git a/reg.php b/reg.php
index 97c5b5e..59466c9 100644
--- a/reg.php
+++ b/reg.php
@@ -113,12 +113,14 @@ if (isset($_REQUEST['username']) and !empty($_REQUEST['username']) and isset($_R
mb_send_mail($email_from, "registration notice ($email)", $registered_notice,
"From: $email_from\n" .
"Reply-To: $email_from\n" .
- "X-Mailer: $maj_mailer");
+ "X-Mailer: $maj_mailer\n" .
+ "Precedence: bulk");
mb_send_mail($email_to, "password notice ($username)", $password_notice,
"From: $email_from\n" .
"Reply-To: $email_from\n" .
- "X-Mailer: $maj_mailer");
+ "X-Mailer: $maj_mailer\n" .
+ "Precedence: bulk");
$fp_new_txt = fopen("$maj_data_directory/bb-new.txt","w");
fwrite($fp_new_txt,$username);
@@ -185,7 +187,8 @@ if (isset($_REQUEST['username']) and !empty($_REQUEST['username']) and isset($_R
mb_send_mail($email_from, "confirmation notice ($email)", $confirmation_notice,
"From: $email_from\n" .
"Reply-To: $email_from\n" .
- "X-Mailer: $maj_mailer");
+ "X-Mailer: $maj_mailer\n" .
+ "Precedence: bulk");
}
else {
if (!file_exists("$maj_data_directory/members/active")) {
@@ -200,7 +203,8 @@ if (isset($_REQUEST['username']) and !empty($_REQUEST['username']) and isset($_R
mb_send_mail($email_from, "registration notice ($email)", $registered_notice,
"From: $email_from\n" .
"Reply-To: $email_from\n" .
- "X-Mailer: $maj_mailer");
+ "X-Mailer: $maj_mailer\n" .
+ "Precedence: bulk");
$password = str_rand(16);
@@ -233,7 +237,8 @@ if (isset($_REQUEST['username']) and !empty($_REQUEST['username']) and isset($_R
mb_send_mail($email_to, "password notice ($username)", $password_notice,
"From: $email_from\n" .
"Reply-To: $email_from\n" .
- "X-Mailer: $maj_mailer");
+ "X-Mailer: $maj_mailer\n" .
+ "Precedence: bulk");
$fp_new_txt = fopen("$maj_data_directory/bb-new.txt","w");
fwrite($fp_new_txt,$username);
@@ -592,7 +597,8 @@ if ($_POST['submit'] == "1") {
mb_send_mail($email_to, "confirm $key", $confirm_thanks,
"From: $email_from\n" .
"Reply-To: $email_from\n" .
- "X-Mailer: $maj_mailer");
+ "X-Mailer: $maj_mailer\n" .
+ "Precedence: bulk");
unset($err_username);
unset($err_firstname);
diff --git a/reset.php b/reset.php
index 6dd8e26..47d45ab 100644
--- a/reset.php
+++ b/reset.php
@@ -96,12 +96,14 @@ if (isset($_POST['username']) and !empty($_POST['username']) and isset($_POST['a
mb_send_mail($from_email, "password reset notice ($username)", $reset_notice,
"From: $from_email\n" .
"Reply-To: $from_email\n" .
- "X-Mailer: $maj_mailer");
+ "X-Mailer: $maj_mailer\n" .
+ "Precedence: bulk");
mb_send_mail($email, "password reset notice ($username)", $password_notice,
"From: $from_email\n" .
"Reply-To: $from_email\n" .
- "X-Mailer: $maj_mailer");
+ "X-Mailer: $maj_mailer\n" .
+ "Precedence: bulk");
if (file_exists("$maj_data_directory/members/active/$username/bb-lockout.txt")) {
unlink("$maj_data_directory/members/active/$username/bb-lockout.txt");