view release on metacpan or search on metacpan
lib/Mail/MtPolicyd/Plugin/Accounting.pm view on Meta::CPAN
$metrics->{'size_rcpt'} = $rcpt_cnt ? $size * $rcpt_cnt : $size;
return( $metrics );
}
sub update_accounting {
my ( $self, $field, $key, $metrics ) = @_;
eval {
$self->update_accounting_row($field, $key, $metrics);
};
lib/Mail/MtPolicyd/Plugin/Accounting.pm view on Meta::CPAN
$self->execute_sql($sql);
return;
}
sub update_accounting_row {
my ( $self, $field, $key, $metrics ) = @_;
my $dbh = $self->_db_handle;
my $table_name = $dbh->quote_identifier( $self->get_table_name($field) );
my $where = {
'key' => $key,
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Mail/Salsa/Action/Admin.pm view on Meta::CPAN
if(/^($patterns[0]) +<($patterns[1])>\s+/) { return([lc($2), $1]); }
if(/^<?($patterns[1])>?\s+/) { return([lc($1), ""]); }
return(["", ""]);
}
sub update_file {
my $newfile = shift;
my $oldfile = shift;
open(NEW, "<", $newfile) or die("$!");
open(OLD, ">", $oldfile) or die("$!");
lib/Mail/Salsa/Action/Admin.pm view on Meta::CPAN
unlink($file) or die("$!");
return(\@error);
}
sub update_list {
my $list = shift;
my $hash = shift;
open(OLDLIST, "<", $list) or die("$!");
open(NEWLIST, ">", "$list\.new") or die("$!");
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Mail/SpamAssassin/AICache.pm view on Meta::CPAN
$name = $self->canon($name);
return $self->{cache}->{$name};
}
sub update {
my ($self, $name, $date) = @_;
return unless $name;
$name = $self->canon($name);
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Mail/Toaster/Darwin.pm view on Meta::CPAN
else {
print "ports_check_age: Ports file is current (enough).\n";
}
}
sub update_ports {
my $self = shift;
my $cvsbin = $self->util->find_bin( "cvs",fatal=>0, verbose=>0 );
unless ( -x $cvsbin ) {
die "FATAL: could not find cvs, please install Developer Tools!\n";
lib/Mail/Toaster/Darwin.pm view on Meta::CPAN
else {
$self->update_ports_init();
};
};
sub update_ports_init {
my $self = shift;
print <<'EO_NO_PORTS';
WARNING! I expect to find your dports dir in /usr/ports/dports. Please install
it there or add a symlink there pointing to where you have your Darwin ports
lib/Mail/Toaster/Darwin.pm view on Meta::CPAN
chdir("/usr/dports/base");
$self->util->syscmd( "./configure; make; make install", verbose=>0 );
}
}
sub update_ports_sync {
my $self = shift;
print "\n\nupdate_ports: You might want to update your ports tree!\n\n";
if ( ! $self->util->yes_or_no(
question=>"\n\nWould you like me to do it for you?" ) )
view all matches for this distribution
view release on metacpan or search on metacpan
Makefile.PL view on Meta::CPAN
$examples =~ s/\r\n/\n/g;
update_file( $example_file, $examples );
};
};
sub update_file {
my( $filename, $new_content ) = @_;
my $content;
if( -f $filename ) {
open my $fh, '<', $filename
or die "Couldn't read '$filename': $!";
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Mail/Webmail/Gmail.pm view on Meta::CPAN
}
}
return ( $self->{_logged_in} );
}
sub update_tokens {
my ( $self, $res ) = @_;
my $previous = $res->previous();
if ( $previous ) {
update_tokens( $self, $previous );
lib/Mail/Webmail/Gmail.pm view on Meta::CPAN
$self->{_err_str} .= "Error: While requesting attachment: '$res->{_request}->{_uri}'.\n";
return;
}
}
sub update_prefs {
my ( $self ) = shift;
my ( %args ) = (
view => 'tl',
act => 'prefs',
search => 'inbox',
view all matches for this distribution
view release on metacpan or search on metacpan
Mail/Folder.pm view on Meta::CPAN
=back
=cut
sub update_message {
my $self = shift;
my $key = shift;
my $mref = shift;
return 0 if (($self->foldername eq '') ||
view all matches for this distribution