| 1 | package Mail::Karmasphere::Parser::RBL::SimpleIP; | ||
| 2 | |||
| 3 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 2 | ▶ | use base 'Mail::Karmasphere::Parser::RBL::Base'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 0 | ▶ | sub _type { "ip4" } |
|
Subroutine
_type: not called CC=1 SCAR=6.9
| |||
| 8 | |||
| 9 | 1 | ▶ | sub _streams { qw(ip4) } |
|
Subroutine
_streams: called CC=1 SCAR=0.0
| |||
| 10 | |||
| 11 | 0 | ▶ | sub my_format { "rbl.simpleip" } # if the source table's "magic" field is rbl.simpleip, this module deals with it. |
|
Subroutine
my_format: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 12 | |||
| 13 | 9 | ▶ | sub tweaks { |
|
Subroutine
tweaks: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 14 | 9 | my $self = shift; | |
| 15 | |||
| 16 | # we assume it's a url identity. | ||
| 17 | |||
| 18 | 9 | my ($firstword) = split(' ', $_[0], 2); | |
| 19 | |||
| 20 | 9 | return ("ip4", 0, $firstword); | |
| 21 | } | ||
| 22 | |||
| 23 | 2 | 1; | |