Commit 61c36761 authored by sikeda's avatar sikeda
Browse files

[-change] Sympa::Spindle::SendDigest and Sympa::Spindle::StoreArchive are...

[-change] Sympa::Spindle::SendDigest and Sympa::Spindle::StoreArchive are renamed to Sympa::Spindle::ProcessDigest and Sympa::Spindle::ProcessArchive respectively for consistent naming.


git-svn-id: https://subversion.renater.fr/sympa/branches/sympa-6.2-branch@12591 05aa8bb8-cd2b-0410-b1d7-8918dfa770ce
parent 70acb298
......@@ -83,15 +83,15 @@ nobase_modules_DATA = \
Sympa/Spindle/DoCommand.pm \
Sympa/Spindle/DoForward.pm \
Sympa/Spindle/DoMessage.pm \
Sympa/Spindle/ProcessArchive.pm \
Sympa/Spindle/ProcessAutomatic.pm \
Sympa/Spindle/ProcessBounce.pm \
Sympa/Spindle/ProcessDigest.pm \
Sympa/Spindle/ProcessHeld.pm \
Sympa/Spindle/ProcessIncoming.pm \
Sympa/Spindle/ProcessModeration.pm \
Sympa/Spindle/ProcessOutgoing.pm \
Sympa/Spindle/ResendArchive.pm \
Sympa/Spindle/SendDigest.pm \
Sympa/Spindle/StoreArchive.pm \
Sympa/Spindle/ToArchive.pm \
Sympa/Spindle/ToDigest.pm \
Sympa/Spindle/ToEditor.pm \
......
......@@ -1474,7 +1474,7 @@ sub _get_single_param_value {
#sub _mail_message;
# Old name: List::send_msg_digest().
# Moved to Sympa::Spindle::SendDigest::_distribute_digest().
# Moved to Sympa::Spindle::ProcessDigest::_distribute_digest().
#sub distribute_digest;
sub get_digest_recipients_per_mode {
......@@ -4576,7 +4576,7 @@ sub is_archiving_enabled {
}
# Old name: Sympa::List::get_nextdigest().
# Moved to Sympa::Spindle::SendDigest::_may_distribute_digest().
# Moved to Sympa::Spindle::ProcessDigest::_may_distribute_digest().
#sub may_distribute_digest;
## Loads all scenari for an action
......
......@@ -22,7 +22,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
package Sympa::Spindle::StoreArchive;
package Sympa::Spindle::ProcessArchive;
use strict;
use warnings;
......@@ -372,18 +372,18 @@ __END__
=head1 NAME
Sympa::Spindle::StoreArchive - Workflow of archive storage
Sympa::Spindle::ProcessArchive - Workflow of archive storage
=head1 SYNOPSIS
use Sympa::Spindle::StoreArchive;
use Sympa::Spindle::ProcessArchive;
my $spindle = Sympa::Spindle::StoreArchive->new;
my $spindle = Sympa::Spindle::ProcessArchive->new;
$spindle->spin;
=head1 DESCRIPTION
L<Sympa::Spindle::StoreArchive> defines workflow to store messages into
L<Sympa::Spindle::ProcessArchive> defines workflow to store messages into
archves.
When spin() method is invoked, messages kept in archive spool are
......@@ -444,5 +444,6 @@ L<Sympa::Archive>, L<Sympa::Spindle>, L<Sympa::Spool::Archive>.
=head1 HISTORY
L<Sympa::Spindle::StoreArchive> appeared on Sympa 6.2.10.
It was renamed to L<Sympa::Spindle::ProcessArchive> on Sympa 6.2.13.
=cut
......@@ -22,7 +22,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
package Sympa::Spindle::SendDigest;
package Sympa::Spindle::ProcessDigest;
use strict;
use warnings;
......@@ -288,18 +288,19 @@ __END__
=head1 NAME
Sympa::Spindle::SendDigest - Workflow of digest sending
Sympa::Spindle::ProcessDigest - Workflow of digest sending
=head1 SYNOPSIS
use Sympa::Spindle::SendDigest;
use Sympa::Spindle::ProcessDigest;
my $spindle = Sympa::Spindle::SendDigest->new;
my $spindle = Sympa::Spindle::ProcessDigest->new;
$spindle->spin;
=head1 DESCRIPTION
L<Sympa::Spindle::SendDigest> defines workflow to distribute digest messages.
L<Sympa::Spindle::ProcessDigest> defines workflow to distribute digest
messages.
When spin() method is invoked, messages kept in digest spool of each list are
compiled into digest messages (MIME digest, plain text digest or summary) and
......@@ -343,5 +344,6 @@ L<Sympa::Spool::Digest>, L<Sympa::Spool::Digest::Collection>.
=head1 HISTORY
L<Sympa::Spindle::SendDigest> appeared on Sympa 6.2.10.
It was renamed to L<Sympa::Spindle::ProcessDigest> on Sympa 6.2.13.
=cut
......@@ -114,7 +114,7 @@ Named such by historical reason.
=head1 SEE ALSO
L<Sympa::Archive>, L<Sympa::Message>, L<Sympa::Spindle::StoreArchive>,
L<Sympa::Archive>, L<Sympa::Message>, L<Sympa::Spindle::ProcessArchive>,
L<Sympa::Spool>.
=head1 HISTORY
......
......@@ -39,7 +39,7 @@ use Sympa::DatabaseManager;
use Sympa::Language;
use Sympa::Log;
use Sympa::Process;
use Sympa::Spindle::StoreArchive;
use Sympa::Spindle::ProcessArchive;
my $process = Sympa::Process->instance;
$process->init(pidname => 'archived');
......@@ -149,7 +149,7 @@ Sympa::Language->instance->set_lang($Conf::Conf{'lang'}, 'en');
$log->syslog('notice', 'Archived %s Started', Sympa::Constants::VERSION);
my $spindle = Sympa::Spindle::StoreArchive->new;
my $spindle = Sympa::Spindle::ProcessArchive->new;
# Catch signals, in order to exit cleanly, whenever possible.
$SIG{'TERM'} = 'sigterm';
......@@ -182,25 +182,25 @@ sub sigterm {
$spindle->{finish} = $sig;
}
# Moved to Sympa::Spindle::StoreArchive::_twist().
# Moved to Sympa::Spindle::ProcessArchive::_twist().
#sub process_message;
# Moved to Sympa::Spindle::StoreArchive::_do_command().
# Moved to Sympa::Spindle::ProcessArchive::_do_command().
#sub do_command;
# Moved to Sympa::Archive::html_remove(). Use do_remove_arc() instead.
#sub remove;
# Moved to Sympa::Spindle::StoreArchive::_do_remove_arc().
# Moved to Sympa::Spindle::ProcessArchive::_do_remove_arc().
#sub do_remove_arc;
# Moved to Sympa::Archive::html_rebuild(). Use do_rebuildarc() instead.
#sub rebuild;
# Moved to Sympa::Spindle::StoreArchive::_do_rebuildarc().
# Moved to Sympa::Spindle::ProcessArchive::_do_rebuildarc().
#sub do_rebuildarc;
# Moved to Sympa::Spindle::StoreArchive::_mail2arc().
# Moved to Sympa::Spindle::ProcessArchive::_mail2arc().
#sub mail2arc;
# Moved to Sympa::Archive::_set_hidden_mode().
......@@ -335,6 +335,6 @@ See L<http://www.sympa.org/tracking>.
L<sympa_msg(8)>, L<bounced(8)>, L<mhonarc(1)>, L<sympa.conf(5)>.
L<Sympa::Spindle::StoreArchive>.
L<Sympa::Spindle::ProcessArchive>.
=cut
......@@ -46,7 +46,7 @@ use Sympa::Language;
use Sympa::List;
use Sympa::Log;
use Sympa::Mailer;
use Sympa::Spindle::SendDigest;
use Sympa::Spindle::ProcessDigest;
use tools;
use Sympa::Tools::Data;
use Sympa::Upgrade;
......@@ -995,7 +995,7 @@ elsif ($main::options{'sync_list_db'}) {
}
exit 0;
} elsif ($main::options{'send_digest'}) {
Sympa::Spindle::SendDigest->new(
Sympa::Spindle::ProcessDigest->new(
send_now => 1,
keep_digest => $main::options{'keep_digest'},
)->spin;
......@@ -1079,7 +1079,7 @@ sub _load {
}
}
# DEPRECATED. Use Sympa::Spindle::SendDigest class.
# DEPRECATED. Use Sympa::Spindle::ProcessDigest class.
#sub SendDigest;
# Lowercase field from database.
......
......@@ -40,8 +40,8 @@ use Sympa::Language;
use Sympa::Log;
use Sympa::Mailer;
use Sympa::Process;
use Sympa::Spindle::ProcessDigest;
use Sympa::Spindle::ProcessIncoming;
use Sympa::Spindle::SendDigest;
use Sympa::Tools::Data;
my $process = Sympa::Process->instance;
......@@ -234,7 +234,7 @@ while (not $spindle->{finish} or $spindle->{finish} ne 'term') {
if (0 == $process->{generation}
and $index_queuedigest++ >= $digestsleep) {
$index_queuedigest = 0;
Sympa::Spindle::SendDigest->new->spin;
Sympa::Spindle::ProcessDigest->new->spin;
}
$spindle->spin;
......@@ -406,7 +406,7 @@ sub sighup {
# Moved to Sympa::Spindle::DoCommand::_twist().
#sub DoCommand;
# DEPRECATED. Use Sympa::Spindle::SendDigest class.
# DEPRECATED. Use Sympa::Spindle::ProcessDigest class.
#sub SendDigest;
# Moved to Sympa::Spindle::ProcessIncoming::_clean_msgid_table().
......@@ -525,8 +525,8 @@ L<sympa.conf(5)>, L<sympa(1)>.
L<archived(8)>, L<bulk(8)>, L<bounced(8)>, L<sympa_automatic(8)>,
L<task_manager(8)>.
L<Sympa::Spindle::ProcessIncoming>,
L<Sympa::Spindle::SendDigest>.
L<Sympa::Spindle::ProcessDigest>,
L<Sympa::Spindle::ProcessIncoming>.
=head1 HISTORY
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment