OurNet::BBSApp::Sync is a Perl module to sync between BBS article groups.
SYNOPSIS
my $sync = OurNet::BBSApp::Sync->new({
artgrp => $local->{boards}{board1}{articles},
rartgrp => $remote->{boards}{board2}{articles},
param => {
lseen => 0,
rseen => 0,
remote => 'bbs.remote.org',
backend => 'BBSAgent',
board => 'board2',
lmsgid => '',
msgids => {
articles => [
'',
'',
],
archives => [
'',
'',
],
},
},
force_fetch => 0,
force_send => 0,
force_none => 0,
msgidkeep => 128,
recursive => 0,
clobber => 1,
backend => 'BBSAgent',
logfh => *STDOUT,
callback => sub { },
});
$sync->do_fetch('archives');
$sync->do_send;
OurNet::BBSApp::Sync performs a sophisticated synchronization algorithm on two OurNet::BBS ArticleGroup objects. It operates on the first one (lartgrp)'s behalf, updates what's being done in the param field, and attempts to determine the minimally needed transactions to run.
The two methods, do_fetch and do_send could be used independently. Beyond that, note that the interface might change in the future, and currently it's only a complement to the ebx toolkit.
Requirements:
· Perl
Product's homepage
Requirements:
· Perl