Mail-DMARC
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
lib/Mail/DMARC/Base.pm view on Meta::CPAN
return 1 if $public_suffixes->{$zone};
my @labels = split /\./, $zone;
$zone = join '.', '*', (@labels)[ 1 .. scalar(@labels) - 1 ];
return 1 if $public_suffixes->{$zone};
return 0;
}
sub update_psl_file {
my ($self, $dryrun) = @_;
my $psl_file = $self->find_psl_file();
die "No Public Suffix List file found\n" if ( ! $psl_file );
die "Public suffix list file $psl_file not found\n" if ( ! -f $psl_file );
die "Cannot write to Public Suffix List file $psl_file\n" if ( ! -w $psl_file );
my $url = 'https://publicsuffix.org/list/effective_tld_names.dat';
if ( $dryrun ) {
lib/Mail/DMARC/Report/Store/SQL/Grammars/MySQL.pm view on Meta::CPAN
my $columns = join ', ', @$cols;
return "INSERT INTO $table ($columns) VALUES (??)";
}
sub replace_into {
my ($self, $table, $cols) = @_;
my $columns = join ', ', @$cols;
return "REPLACE INTO $table ($columns) VALUES (??)";
}
sub update {
my ($self, $table, $cols) = @_;
my $columns = join( ' = ?, ') . ' = ?';
return "UPDATE $table SET $columns WHERE 1=1";
}
sub delete_from {
my ($self, $table) = @_;
return "DELETE FROM $table WHERE 1=1";
}
lib/Mail/DMARC/Report/Store/SQL/Grammars/PostgreSQL.pm view on Meta::CPAN
}
return "SELECT $colStr FROM \"$table\" WHERE 1=1";
}
sub insert_into {
my ($self, $table, $cols) = @_;
my $columns = '"' . join( '", "', @$cols ) . '"';
return "INSERT INTO \"$table\" ($columns) VALUES (??)";
}
sub update {
my ($self, $table, $cols) = @_;
my $columns = '"' . join( '" = ?, "') . '" = ?';
return "UPDATE \"$table\" SET $columns WHERE 1=1";
}
sub delete_from {
my ($self, $table) = @_;
return "DELETE FROM \"$table\" WHERE 1=1";
}
lib/Mail/DMARC/Report/Store/SQL/Grammars/SQLite.pm view on Meta::CPAN
my $colStr = join( ', ', @$columns );
return "SELECT $colStr FROM $table WHERE 1=1";
}
sub insert_into {
my ($self, $table, $cols) = @_;
my $columns = join ', ', @$cols;
return "INSERT INTO $table ($columns) VALUES (??)";
}
sub update {
my ($self, $table, $cols) = @_;
my $columns = join( ' = ?, ') . ' = ?';
return "UPDATE $table SET $columns WHERE 1=1";
}
sub replace_into {
my ($self, $table, $cols) = @_;
my $columns = join ', ', @$cols;
return "REPLACE INTO $table ($columns) VALUES (??)";
}
view all matches for this distributionview release on metacpan - search on metacpan
( run in 1.258 second using v1.00-cache-2.02-grep-82fe00e-cpan-4673cadbf75 )