summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfukachan <fukachan>2001-11-13 15:18:07 +0000
committerfukachan <fukachan>2001-11-13 15:18:07 +0000
commitc184913bb1af2606dc281cb6888f4c0b96b656e1 (patch)
tree6dee55146a4ff3adf17f1deaac19c83ac1a243be
parent54c4d023190d704b3988aa6af0e50046f4734ff1 (diff)
downloadfml8-c184913bb1af2606dc281cb6888f4c0b96b656e1.tar.gz
fml8-c184913bb1af2606dc281cb6888f4c0b96b656e1.tar.bz2
fml8-c184913bb1af2606dc281cb6888f4c0b96b656e1.zip
move get_ml_list() to FML::Process::CGI::Kernel
-rw-r--r--fml/lib/FML/CGI/ThreadTrack.pm21
-rw-r--r--fml/lib/FML/Process/CGI/Kernel.pm29
2 files changed, 29 insertions, 21 deletions
diff --git a/fml/lib/FML/CGI/ThreadTrack.pm b/fml/lib/FML/CGI/ThreadTrack.pm
index b1243799..5c5680bd 100644
--- a/fml/lib/FML/CGI/ThreadTrack.pm
+++ b/fml/lib/FML/CGI/ThreadTrack.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: ThreadTrack.pm,v 1.7 2001/11/11 23:42:05 fukachan Exp $
+# $FML: ThreadTrack.pm,v 1.8 2001/11/12 02:19:19 fukachan Exp $
#
package FML::CGI::ThreadTrack;
@@ -174,25 +174,6 @@ sub _show_guide
}
-sub get_ml_list
-{
- my ($curproc, $args) = @_;
- my $config = $curproc->{ config };
-
- use DirHandle;
- my $dh = new DirHandle $config->{ ml_home_prefix };
- my @dirlist;
- my $prefix = $config->{ ml_home_prefix };
- while ($_ = $dh->read()) {
- next if /^\./;
- next if /^\@/;
- push(@dirlist, $_) if -f "$prefix/$_/config.cf";
- }
- $dh->close;
-
- return \@dirlist;
-}
-
=head1 SEE ALSO
L<CGI>,
diff --git a/fml/lib/FML/Process/CGI/Kernel.pm b/fml/lib/FML/Process/CGI/Kernel.pm
index f5fba3fd..d8df0c17 100644
--- a/fml/lib/FML/Process/CGI/Kernel.pm
+++ b/fml/lib/FML/Process/CGI/Kernel.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: Kernel.pm,v 1.6 2001/11/11 23:34:00 fukachan Exp $
+# $FML: Kernel.pm,v 1.7 2001/11/13 03:42:47 fukachan Exp $
#
package FML::Process::CGI::Kernel;
@@ -142,6 +142,33 @@ sub run
}
+=head2 get_ml_list($args)
+
+get HASH ARRAY of valid mailing lists.
+
+=cut
+
+
+sub get_ml_list
+{
+ my ($curproc, $args) = @_;
+ my $config = $curproc->{ config };
+
+ use DirHandle;
+ my $dh = new DirHandle $config->{ ml_home_prefix };
+ my @dirlist;
+ my $prefix = $config->{ ml_home_prefix };
+ while ($_ = $dh->read()) {
+ next if /^\./;
+ next if /^\@/;
+ push(@dirlist, $_) if -f "$prefix/$_/config.cf";
+ }
+ $dh->close;
+
+ return \@dirlist;
+}
+
+
=head2 safe_param_xxx()
get and filter param('xxx') via AUTOLOAD().