From 3c20fc86780bb0a9bca8cadb8392c7824c2e4a13 Mon Sep 17 00:00:00 2001 From: uckelman Date: Sun, 11 Apr 2010 21:52:09 +0000 Subject: Pass time to build_message_id(). git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@6689 67b53d14-2c14-4ace-a08f-0dab2b34000c --- src/F2M.php | 6 +++++- src/Util.php | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/F2M.php b/src/F2M.php index d65ec15..1846c7f 100644 --- a/src/F2M.php +++ b/src/F2M.php @@ -26,7 +26,10 @@ function send_to_lists($user, $data, $post_data) { $userEmail = $user->data['user_email']; $subject = $post_data['post_subject']; - $date = date(DATE_RFC2822, $phpbb->getPostTime($postId)); + $time = $phpbb->getPostTime($postId); + $date = date(DATE_RFC2822, $time); + +# $messageId = mbuild_message_id($time, $postId, $forumHost); $body = $data['message']; @@ -34,6 +37,7 @@ function send_to_lists($user, $data, $post_data) { var_dump($data); var_dump($post_data); var_dump($date); + var_dump($_SERVER); print '

'; /* diff --git a/src/Util.php b/src/Util.php index 62981b2..2384911 100644 --- a/src/Util.php +++ b/src/Util.php @@ -4,8 +4,8 @@ function throw_if_null($arg) { if ($arg === null) throw new Exception('argument is null'); } -function build_message_id($postId, $forumHost) { - return '<' . time() . ".bridge.$postId@$forumHost>"; +function build_message_id($time, $postId, $forumHost) { + return "<$time.$postId.bridge@$forumHost>"; } ?> -- cgit v1.2.3