diff options
| author | fukachan <fukachan> | 2004-02-06 12:41:20 +0000 |
|---|---|---|
| committer | fukachan <fukachan> | 2004-02-06 12:41:20 +0000 |
| commit | 538c7afcb5a66ed657ab37d201ac635428d917fe (patch) | |
| tree | b8538408b5d43d06b2d98cdc719eb6d8bc2be389 /fml/lib | |
| parent | a3c3165ca9c406afca9dc23dd61be6ef98ad50d5 (diff) | |
| download | fml8-538c7afcb5a66ed657ab37d201ac635428d917fe.tar.gz fml8-538c7afcb5a66ed657ab37d201ac635428d917fe.tar.bz2 fml8-538c7afcb5a66ed657ab37d201ac635428d917fe.zip | |
expand special regexp in tag before tag substitution.
Diffstat (limited to 'fml/lib')
| -rw-r--r-- | fml/lib/FML/Header.pm | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/fml/lib/FML/Header.pm b/fml/lib/FML/Header.pm index 79592bcb..6f47687f 100644 --- a/fml/lib/FML/Header.pm +++ b/fml/lib/FML/Header.pm @@ -4,7 +4,7 @@ # All rights reserved. This program is free software; you can # redistribute it and/or modify it under the same terms as Perl itself. # -# $FML: Header.pm,v 1.69 2004/01/22 12:34:21 fukachan Exp $ +# $FML: Header.pm,v 1.70 2004/02/04 15:19:14 fukachan Exp $ # package FML::Header; @@ -417,6 +417,15 @@ sub rewrite_article_subject_tag my ($header, $config, $rw_args) = @_; my $tag = $config->{ article_subject_tag }; + # for example, ml_name = elena + # if $tag has special regexp such as \U$ml_name\E or \L$ml_name\E + if (defined $tag) { + if ($tag =~ /\\E/o && $tag =~ /\\U|\\L/o) { + eval qq{ \$tag = "$tag";}; + Log($@) if $@; + } + } + # XXX-TODO: need $article_subject_tag expaned already e.g. "\Lmlname\E" # XXX-TODO: we should include this exapansion method within this module? use Mail::Message::Subject; |
