mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-26 05:20:11 +01:00
new option REWRITE_MESSAGE_ID enables you to rewrite the message-id of the restored message
This commit is contained in:
parent
90ef9dc0e2
commit
acb3790a0f
@ -19,6 +19,7 @@ define('ENABLE_GOOGLE_LOGIN', 0);
|
|||||||
define('SEARCH_RESULT_CHECKBOX_CHECKED', 1);
|
define('SEARCH_RESULT_CHECKBOX_CHECKED', 1);
|
||||||
define('HELPER_URL', '');
|
define('HELPER_URL', '');
|
||||||
define('ENABLE_SYSLOG', 0);
|
define('ENABLE_SYSLOG', 0);
|
||||||
|
define('REWRITE_MESSAGE_ID', 0);
|
||||||
define('GOOGLE_CLIENT_ID', 'xxxxxxxxxxx');
|
define('GOOGLE_CLIENT_ID', 'xxxxxxxxxxx');
|
||||||
define('GOOGLE_CLIENT_SECRET', 'xxxxxxxxxxxxx');
|
define('GOOGLE_CLIENT_SECRET', 'xxxxxxxxxxxxx');
|
||||||
define('GOOGLE_DEVELOPER_KEY', 'xxxxxxxxxxxx');
|
define('GOOGLE_DEVELOPER_KEY', 'xxxxxxxxxxxx');
|
||||||
|
@ -8,6 +8,10 @@ class ModelMailMail extends Model {
|
|||||||
|
|
||||||
if($to == "" || strlen($msg) < 30){ return $ok; }
|
if($to == "" || strlen($msg) < 30){ return $ok; }
|
||||||
|
|
||||||
|
if(REWRITE_MESSAGE_ID == 1) {
|
||||||
|
$msg = preg_replace("/Message-ID:([\ \w\_\-\@\<\>\.\r]+)\n/i", "Message-ID: <" . generate_random_string(25) . '@' . SITE_NAME . ">\n", $msg);
|
||||||
|
}
|
||||||
|
|
||||||
$r = fsockopen($smtphost, $smtpport);
|
$r = fsockopen($smtphost, $smtpport);
|
||||||
if(!$r){ return -1; }
|
if(!$r){ return -1; }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user