diff options
| author | fukachan <fukachan> | 2003-07-19 09:29:16 +0000 |
|---|---|---|
| committer | fukachan <fukachan> | 2003-07-19 09:29:16 +0000 |
| commit | 52449fa0a4c31c0196d083b85db1c53edb2f6fb1 (patch) | |
| tree | e7dc4ab03bcc44fca5ad26ea2a358308be6a89a9 /fml/lib/Mail/Message/MH.pm | |
| parent | 972dd93be88363b5e27259337ea2ada8eeba599c (diff) | |
| download | fml8-udb-merge.tar.gz fml8-udb-merge.tar.bz2 fml8-udb-merge.zip | |
catch up -currentudb-merge
Diffstat (limited to 'fml/lib/Mail/Message/MH.pm')
| -rw-r--r-- | fml/lib/Mail/Message/MH.pm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/fml/lib/Mail/Message/MH.pm b/fml/lib/Mail/Message/MH.pm index efd5ab4b..ba28b836 100644 --- a/fml/lib/Mail/Message/MH.pm +++ b/fml/lib/Mail/Message/MH.pm @@ -2,7 +2,7 @@ # # Copyright (C) 2001,2002,2003 Ken'ichi Fukamachi # -# $FML: MH.pm,v 1.12 2003/01/11 15:16:35 fukachan Exp $ +# $FML: MH.pm,v 1.14 2003/06/06 10:26:15 tmu Exp $ # package Mail::Message::MH; @@ -78,15 +78,19 @@ sub expand } elsif ($str =~ /^(\d+)\-(\d+)$/) { my ($first, $last) = ($1, $2); + $first = $min if($first < $min); + $last = $max if($last > $max); return _expand_range($first, $last); } elsif ($str =~ /^(first)\-(\d+)$/) { my ($first, $last) = ($1, $2); + $last = $max if($last > $max); return _expand_range($min, $last); } elsif ($str =~ /^(\d+)\-(last)$/) { unless (defined $max) { return undef;} my ($first, $last) = ($1, $2); + $first = $min if($first < $min); return _expand_range($first, $max); } elsif ($str eq 'first') { |
