summaryrefslogtreecommitdiff
path: root/fml/lib/FML/Command/Admin
diff options
context:
space:
mode:
authorfukachan <fukachan>2004-09-04 03:13:16 +0000
committerfukachan <fukachan>2004-09-04 03:13:16 +0000
commit0b39767403e0959f47ae048f550c9787b358dd2a (patch)
tree518bad66c58c7290135caaccb6ed4152a06afb10 /fml/lib/FML/Command/Admin
parent1b507f1bd68ad655e0cb55ae36120ec4195efce3 (diff)
downloadfml8-0b39767403e0959f47ae048f550c9787b358dd2a.tar.gz
fml8-0b39767403e0959f47ae048f550c9787b358dd2a.tar.bz2
fml8-0b39767403e0959f47ae048f550c9787b358dd2a.zip
print only valid queue
Diffstat (limited to 'fml/lib/FML/Command/Admin')
-rw-r--r--fml/lib/FML/Command/Admin/mailq.pm29
1 files changed, 18 insertions, 11 deletions
diff --git a/fml/lib/FML/Command/Admin/mailq.pm b/fml/lib/FML/Command/Admin/mailq.pm
index 17237986..c4e1af29 100644
--- a/fml/lib/FML/Command/Admin/mailq.pm
+++ b/fml/lib/FML/Command/Admin/mailq.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: mailq.pm,v 1.9 2004/08/14 03:35:43 fukachan Exp $
+# $FML: mailq.pm,v 1.10 2004/09/03 12:43:55 fukachan Exp $
#
package FML::Command::Admin::mailq;
@@ -83,17 +83,24 @@ sub _list_up_queue
for my $qid (@$ra_list) {
my $info = $queue->getidinfo($qid);
- # 1. the first line is "queue-id sender".
- printf $format, $qid, $info->{sender};
-
- # 2. list up recipients after 2nd lines.
- my $rq = $info->{ recipients };
- for my $r (@$rq) {
- printf $format, "", $r;
+ my $q = new Mail::Delivery::Queue {
+ id => $qid,
+ directory => $queue_dir,
+ };
+
+ if ($q->is_valid_queue()) {
+ # 1. the first line is "queue-id sender".
+ printf $format, $qid, $info->{sender};
+
+ # 2. list up recipients after 2nd lines.
+ my $rq = $info->{ recipients };
+ for my $r (@$rq) {
+ printf $format, "", $r;
+ }
+ print "\n";
+
+ $count++;
}
- print "\n";
-
- $count++;
}
if ($count) {