diff options
-rw-r--r-- | src/F2M.php | 6 | ||||
-rw-r--r-- | 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 '</p>'; /* 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>"; } ?> |