forked from benningm/mtpolicyd
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This modularizes the storage backends of the greylisting plungin and adds support for using Redis as storage for AWL and tickets.
- Loading branch information
Showing
9 changed files
with
435 additions
and
161 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package Mail::MtPolicyd::Plugin::Greylist::AWL::Base; | ||
|
||
use Moose; | ||
|
||
# ABSTRACT: base class for grelisting AWL storage backends | ||
# VERSION | ||
|
||
has 'autowl_expire_days' => ( is => 'rw', isa => 'Int', default => 60 ); | ||
|
||
sub init { | ||
my $self = shift; | ||
return; | ||
} | ||
|
||
sub get { | ||
my ( $self, $sender_domain, $client_ip ) = @_; | ||
die('not implemented'); | ||
} | ||
|
||
sub create { | ||
my ( $self, $sender_domain, $client_ip ) = @_; | ||
die('not implemented'); | ||
} | ||
|
||
sub incr { | ||
my ( $self, $sender_domain, $client_ip ) = @_; | ||
die('not implemented'); | ||
} | ||
|
||
sub remove { | ||
my ( $self, $sender_domain, $client_ip ) = @_; | ||
die('not implemented'); | ||
} | ||
|
||
sub expire { } | ||
|
||
1; | ||
|
Oops, something went wrong.