line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Haineko::SMTPD::Relay::Discard; |
2
|
1
|
|
|
1
|
|
3225
|
use parent 'Haineko::SMTPD::Relay'; |
|
1
|
|
|
|
|
402
|
|
|
1
|
|
|
|
|
6
|
|
3
|
1
|
|
|
1
|
|
36
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
22
|
|
4
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
21
|
|
5
|
1
|
|
|
1
|
|
1001
|
use Time::Piece; |
|
1
|
|
|
|
|
15943
|
|
|
1
|
|
|
|
|
9
|
|
6
|
1
|
|
|
1
|
|
599
|
use Haineko::SMTPD::Response; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
186
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub new { |
9
|
2
|
|
|
2
|
1
|
6551
|
my $class = shift; |
10
|
2
|
|
|
|
|
12
|
my $argvs = { @_ }; |
11
|
|
|
|
|
|
|
|
12
|
2
|
|
33
|
|
|
28
|
$argvs->{'time'} ||= Time::Piece->new; |
13
|
2
|
|
|
|
|
416
|
$argvs->{'retry'} = 0; |
14
|
2
|
|
|
|
|
5
|
$argvs->{'sleep'} = 0; |
15
|
2
|
|
|
|
|
4
|
$argvs->{'timeout'} = 0; |
16
|
2
|
|
|
|
|
5
|
$argvs->{'startls'} = 0; |
17
|
2
|
|
|
|
|
9
|
return bless $argvs, __PACKAGE__; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub sendmail { |
21
|
1
|
|
|
1
|
1
|
5897
|
my $self = shift; |
22
|
|
|
|
|
|
|
|
23
|
1
|
|
|
|
|
11
|
$self->response( Haineko::SMTPD::Response->r( 'data', 'discard' ) ); |
24
|
1
|
|
|
|
|
11
|
$self->response->rcpt( $self->{'rcpt'} ); |
25
|
1
|
|
|
|
|
16
|
$self->response->mailer('Discard'); |
26
|
1
|
|
|
|
|
12
|
return 1; |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
1; |
30
|
|
|
|
|
|
|
__END__ |