summaryrefslogtreecommitdiff
path: root/fml/lib
diff options
context:
space:
mode:
authorfukachan <fukachan>2001-11-09 10:36:09 +0000
committerfukachan <fukachan>2001-11-09 10:36:09 +0000
commitee0f515952d0dca6313d95c73c9b30469243e8c3 (patch)
tree76767a8ec1abaf9204c2d2dbf4fb0496a1e153ac /fml/lib
parentcc41834aa5913e333229692080a86e95fab2c684 (diff)
downloadfml8-ee0f515952d0dca6313d95c73c9b30469243e8c3.tar.gz
fml8-ee0f515952d0dca6313d95c73c9b30469243e8c3.tar.bz2
fml8-ee0f515952d0dca6313d95c73c9b30469243e8c3.zip
implement remove_subject_tag_like_string()
Diffstat (limited to 'fml/lib')
-rw-r--r--fml/lib/Mail/Message/Utils.pm17
1 files changed, 17 insertions, 0 deletions
diff --git a/fml/lib/Mail/Message/Utils.pm b/fml/lib/Mail/Message/Utils.pm
new file mode 100644
index 00000000..adec2fdb
--- /dev/null
+++ b/fml/lib/Mail/Message/Utils.pm
@@ -0,0 +1,17 @@
+package Mail::Message::Utils;
+
+=head2 remove_subject_tag_like_string(str)
+
+=cut
+
+sub remove_subject_tag_like_string
+{
+ my ($str) = @_;
+ $str =~ s/^\s*\W[-\w]+.\s*\d+\W//g;
+ $str =~ s/\s+/ /g;
+ $str =~ s/^\s*//g;
+ $str;
+}
+
+
+1;