diff options
| author | fukachan <fukachan> | 2004-05-16 02:42:11 +0000 |
|---|---|---|
| committer | fukachan <fukachan> | 2004-05-16 02:42:11 +0000 |
| commit | e76e8bbc547ba1677d0e688a42d5a0d8d904868c (patch) | |
| tree | 6944a0a82195589f68a1580f91086c86d7070337 /fml/lib | |
| parent | deb9bdd61ce41a68838992ef8e35eb6aa75a6eaa (diff) | |
| download | fml8-e76e8bbc547ba1677d0e688a42d5a0d8d904868c.tar.gz fml8-e76e8bbc547ba1677d0e688a42d5a0d8d904868c.tar.bz2 fml8-e76e8bbc547ba1677d0e688a42d5a0d8d904868c.zip | |
enhance print_userlist() for command mail.
Diffstat (limited to 'fml/lib')
| -rw-r--r-- | fml/lib/FML/User/Control.pm | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/fml/lib/FML/User/Control.pm b/fml/lib/FML/User/Control.pm index bf451c64..64c82dd0 100644 --- a/fml/lib/FML/User/Control.pm +++ b/fml/lib/FML/User/Control.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: Control.pm,v 1.10 2004/04/28 04:06:11 fukachan Exp $ +# $FML: Control.pm,v 1.11 2004/04/30 13:41:54 fukachan Exp $ # package FML::User::Control; @@ -384,10 +384,12 @@ sub _try_chaddr_in_map sub print_userlist { my ($self, $curproc, $command_args, $uc_args) = @_; - my $config = $curproc->config(); - my $maplist = $uc_args->{ maplist }; - my $wh = $uc_args->{ wh }; - my $style = $curproc->get_print_style(); + my $config = $curproc->config(); + my $maplist = $uc_args->{ maplist }; + my $wh = $uc_args->{ wh }; + my $style = $curproc->get_print_style() || ''; + my $is_mta = $curproc->is_under_mta_process() || 0; + my $msg_args = $command_args->{ msg_args }; $curproc->lock($lock_channel); @@ -405,7 +407,10 @@ sub print_userlist next LINE unless defined $buf; next LINE unless $buf; - if ($style eq 'html') { + if ($is_mta) { + $curproc->reply_message($buf, $msg_args); + } + elsif ($style eq 'html') { # XXX-TODO: html-ify address ? print $wh $buf, "<br>\n"; } |
