summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoruckelman <uckelman@nomic.net>2010-07-15 10:37:53 +0000
committeruckelman <uckelman@nomic.net>2010-07-15 10:37:53 +0000
commit7d9bae3106d2e941e75930ab4e70b9f4117aed0d (patch)
tree2951c6c18f0666219268d7d72b52cae9eff2542e
parent9560287ec47979e124803842ffd46289b35490ba (diff)
Move creation of Message-ID to be before its first use!
git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@6987 67b53d14-2c14-4ace-a08f-0dab2b34000c
-rw-r--r--src/forum_post_send.php12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/forum_post_send.php b/src/forum_post_send.php
index e7c573b..aa86422 100644
--- a/src/forum_post_send.php
+++ b/src/forum_post_send.php
@@ -15,10 +15,12 @@ catch (Exception $e) {
function send_post_to_lists($config, $user, $mode, $data, $post_data) {
+/*
print '<p>';
var_dump($data);
var_dump($post_data);
print '</p>';
+*/
# Sanity check
if (!in_array($mode, array('post', 'reply', 'quote', 'edit'))) {
@@ -86,13 +88,17 @@ function send_post_to_lists($config, $user, $mode, $data, $post_data) {
$forumURL = 'http://' . $_SERVER['SERVER_NAME'] .
dirname($_SERVER['SCRIPT_NAME']);
+ $editId = $bridge->reserveEditId($postId);
+ $messageId = build_message_id($postId, $editId,
+ $time, $_SERVER['SERVER_NAME']);
+
# Assemble the message headers
$headers = array(
'To' => $to,
'From' => $from,
'Subject' => $subject,
'Date' => $date,
- 'Message-Id' => $messageId,
+ 'Message-ID' => $messageId,
'X-BeenThere' => $forumURL
);
@@ -185,10 +191,6 @@ EOF;
$body = $msg['body'];
}
- $editId = $bridge->reserveEditId($postId);
- $messageId = build_message_id($postId, $editId,
- $time, $_SERVER['SERVER_NAME']);
-
$mailer = Mail::factory('sendmail');
# Register the message