summaryrefslogtreecommitdiff
path: root/src/build_post.php
diff options
context:
space:
mode:
authorJoel Uckelman <uckelman@nomic.net>2012-02-27 05:54:36 +0100
committerJoel Uckelman <uckelman@nomic.net>2012-02-27 05:54:36 +0100
commite66b736aa6c2e00643b9b061d7064c7991503390 (patch)
treef30b9e8b135b4785bc1b149046918668a9e67d03 /src/build_post.php
parent809671070efe8ff29c633e9be03d0d41a5cf6560 (diff)
Remove Edit marker from incoming mail, add it to outgoing mail.
Diffstat (limited to 'src/build_post.php')
-rw-r--r--src/build_post.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/build_post.php b/src/build_post.php
index 98f6dc7..aa0cbf6 100644
--- a/src/build_post.php
+++ b/src/build_post.php
@@ -6,8 +6,9 @@ function build_post_subject($listtag, $forumtag, $subject) {
'|' . preg_quote($forumtag, '/') . ')\\s*/';
$subj = preg_replace($tagpat, '', $subject);
- // strip leading sequences of Re-equivalents
- if (preg_match('/^(?:(?:RE|AW|SV|VS)(?:\\[\\d+\\])?:\\s*)+/i', $subj, $m)) {
+ // strip leading sequences of Re-equivalents and Edit
+ $re = '/^(?:(?:RE|AW|SV|VS|EDIT)(?:\\[\\d+\\])?:\\s*)+/i';
+ if (preg_match($re, $subj, $m)) {
$subj = substr($subj, strlen($m[0]));
}