improved behavior of CS mail message filtering
This commit is contained in:
parent
edc1c55395
commit
357b2b3c5c
4 changed files with 26 additions and 39 deletions
|
|
@ -82,26 +82,16 @@ sub addPost {
|
|||
$text = WebGUI::HTML::filter($text, "all");
|
||||
$text = WebGUI::HTML::format($text, "text");
|
||||
}
|
||||
else if ($part->type eq 'text/html') {
|
||||
$text = WebGUI::HTML::cleanSegment($text);
|
||||
}
|
||||
$content .= $text;
|
||||
} else {
|
||||
push(@attachments, $part);
|
||||
}
|
||||
}
|
||||
$prefix =~ s/\\/\\\\/g;
|
||||
$prefix =~ s/\[/\\[/g;
|
||||
$prefix =~ s/\]/\\]/g;
|
||||
$prefix =~ s/\(/\\(/g;
|
||||
$prefix =~ s/\)/\\)/g;
|
||||
$prefix =~ s/\}/\\}/g;
|
||||
$prefix =~ s/\{/\\{/g;
|
||||
$prefix =~ s/\?/\\?/g;
|
||||
$prefix =~ s/\./\\./g;
|
||||
$prefix =~ s/\*/\\*/g;
|
||||
$prefix =~ s/\+/\\+/g;
|
||||
$prefix =~ s/\|/\\|/g;
|
||||
$prefix =~ s/\//\\\//g;
|
||||
my $title = $message->{subject};
|
||||
$title =~ s/$prefix//;
|
||||
$title =~ s/\Q$prefix//;
|
||||
if ($title =~ m/re:/i) {
|
||||
$title =~ s/re://ig;
|
||||
$title = "Re: ".$title;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue