diff options
| author | fukachan <fukachan> | 2004-05-19 13:48:20 +0000 |
|---|---|---|
| committer | fukachan <fukachan> | 2004-05-19 13:48:20 +0000 |
| commit | e473f589bf54350f12209f6ab0f537e428416396 (patch) | |
| tree | ab85fc262ec09af4577e03dbf0b79b51904ba422 /fml/lib/FML/Command/Admin | |
| parent | ab1f18acda25ae7e3542c93e320826fe22e0c700 (diff) | |
| download | fml8-e473f589bf54350f12209f6ab0f537e428416396.tar.gz fml8-e473f589bf54350f12209f6ab0f537e428416396.tar.bz2 fml8-e473f589bf54350f12209f6ab0f537e428416396.zip | |
flush mail queue
Diffstat (limited to 'fml/lib/FML/Command/Admin')
| -rw-r--r-- | fml/lib/FML/Command/Admin/flush.pm | 63 | ||||
| -rw-r--r-- | fml/lib/FML/Command/Admin/flushq.pm | 84 |
2 files changed, 147 insertions, 0 deletions
diff --git a/fml/lib/FML/Command/Admin/flush.pm b/fml/lib/FML/Command/Admin/flush.pm new file mode 100644 index 00000000..7645e1f5 --- /dev/null +++ b/fml/lib/FML/Command/Admin/flush.pm @@ -0,0 +1,63 @@ +#-*- perl -*- +# +# Copyright (C) 2004 Ken'ichi Fukamachi +# All rights reserved. This program is free software; you can +# redistribute it and/or modify it under the same terms as Perl itself. +# +# $FML: @template.pm,v 1.8 2004/01/01 07:29:27 fukachan Exp $ +# + +package FML::Command::Admin::flush; +use strict; +use vars qw(@ISA @EXPORT @EXPORT_OK $AUTOLOAD); +use Carp; + +use FML::Command::Admin::flushq; +@ISA = qw(FML::Command::Admin::flushq); + + +# Descriptions: subscribe user +# Arguments: OBJ($self) OBJ($curproc) HASH_REF($command_args) +# Side Effects: forward request to subscribe module +# Return Value: none +sub process +{ + my ($self, $curproc, $command_args) = @_; + $self->SUPER::process($curproc, $command_args); +} + + +=head1 NAME + +FML::Command::Admin::flush - flush mail queue + +=head1 SYNOPSIS + +=head1 DESCRIPTION + +=head1 METHODS + +=head1 CODING STYLE + +See C<http://www.fml.org/software/FNF/> on fml coding style guide. + +=head1 AUTHOR + +Ken'ichi Fukamachi + +=head1 COPYRIGHT + +Copyright (C) 2004 Ken'ichi Fukamachi + +All rights reserved. This program is free software; you can +redistribute it and/or modify it under the same terms as Perl itself. + +=head1 HISTORY + +FML::Command::Admin::flush appeared in fml8 mailing list driver package. +See C<http://www.fml.org/> for more details. + +=cut + + +1; diff --git a/fml/lib/FML/Command/Admin/flushq.pm b/fml/lib/FML/Command/Admin/flushq.pm new file mode 100644 index 00000000..09437d83 --- /dev/null +++ b/fml/lib/FML/Command/Admin/flushq.pm @@ -0,0 +1,84 @@ +#-*- perl -*- +# +# Copyright (C) 2004 Ken'ichi Fukamachi +# All rights reserved. This program is free software; you can +# redistribute it and/or modify it under the same terms as Perl itself. +# +# $FML: @template.pm,v 1.8 2004/01/01 07:29:27 fukachan Exp $ +# + +package FML::Command::Admin::flushq; +use strict; +use vars qw(@ISA @EXPORT @EXPORT_OK $AUTOLOAD); +use Carp; + +=head1 NAME + +FML::Command::Admin::flushq - what is this + +=head1 SYNOPSIS + +=head1 DESCRIPTION + +=head1 METHODS + +=head2 C<new()> + +=cut + +# Descriptions: constructor. +# Arguments: OBJ($self) +# Side Effects: none +# Return Value: OBJ +sub new +{ + my ($self) = @_; + my ($type) = ref($self) || $self; + my $me = {}; + return bless $me, $type; +} + + +# Descriptions: need lock or not +# Arguments: none +# Side Effects: none +# Return Value: NUM( 1 or 0) +sub need_lock { 0;} + + +# Descriptions: change delivery mode from real time to digest. +# Arguments: OBJ($self) OBJ($curproc) HASH_REF($command_args) +# Side Effects: update $recipient_map +# Return Value: none +sub process +{ + my ($self, $curproc, $command_args) = @_; + + $curproc->queue_flush(); +} + + +=head1 CODING STYLE + +See C<http://www.fml.org/software/FNF/> on fml coding style guide. + +=head1 AUTHOR + +Ken'ichi Fukamachi + +=head1 COPYRIGHT + +Copyright (C) 2004 Ken'ichi Fukamachi + +All rights reserved. This program is free software; you can +redistribute it and/or modify it under the same terms as Perl itself. + +=head1 HISTORY + +FML::Command::Admin::flushq appeared in fml8 mailing list driver package. +See C<http://www.fml.org/> for more details. + +=cut + + +1; |
