From 36a04305b45bcb29a24c9cd859aed2fe376ddcbb Mon Sep 17 00:00:00 2001 From: Charly Root Date: Tue, 8 Oct 2013 00:29:50 +0200 Subject: more config markers --- src/PhpBB3Impl.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/PhpBB3Impl.php') diff --git a/src/PhpBB3Impl.php b/src/PhpBB3Impl.php index cc6d400..07c4469 100644 --- a/src/PhpBB3Impl.php +++ b/src/PhpBB3Impl.php @@ -216,7 +216,7 @@ class PhpBB3Impl implements PhpBB3 { $subject = $msg->getSubject(); // FIXME: list tag should not be hard-coded - $listTag = '[messages]'; + $listTag = '[CONFIG_TODO]'; $forumName = $this->getForumName($forumId); $forumTag = '[' . html_entity_decode($forumName, ENT_QUOTES) . ']'; $subject = build_post_subject($listTag, $forumTag, $subject, $postType == 'reply'); @@ -225,7 +225,8 @@ class PhpBB3Impl implements PhpBB3 { # FIXME: extract the footer pattern into a config file? # strip the list footer - $message = strip_list_footer($message, "/^_______________________________________________\\r\\nmessages mailing list\\r\\nmessages@vassalengine.org\\r\\nhttp:\/\/www.vassalengine.org\/mailman\/listinfo\/messages.*/ms"); + # CONFIG_TODO: don't forget to add \\r\\n as newline and escape / with \/ + $message = strip_list_footer($message, "/^_______________________________________________\\r\\nTest-list mailing list\\r\\nTest-list@muse-sequencer.org\\r\\nhttp:\/\/muse-sequencer.org\/cgi-bin\/mailman\/listinfo\/test-list.*/ms"); # TODO: convert > quoting into BBCode -- cgit v1.2.3