File Coverage

blib/lib/Sietima/Role/SubscriberOnly/Drop.pm
Criterion Covered Total %
statement 9 9 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod 1 1 100.0
total 14 14 100.0


line stmt bran cond sub pod time code
1             package Sietima::Role::SubscriberOnly::Drop;
2 1     1   581 use Moo::Role;
  1         2  
  1         8  
3 1     1   611 use Sietima::Policy;
  1         2  
  1         7  
4 1     1   6 use namespace::clean;
  1         3  
  1         8  
5              
6             our $VERSION = '1.0.3'; # VERSION
7             # ABSTRACT: drop messages from non-subscribers
8              
9              
10             with 'Sietima::Role::SubscriberOnly';
11              
12              
13       1 1   sub munge_mail_from_non_subscriber { }
14              
15             1;
16              
17             __END__
18              
19             =pod
20              
21             =encoding UTF-8
22              
23             =head1 NAME
24              
25             Sietima::Role::SubscriberOnly::Drop - drop messages from non-subscribers
26              
27             =head1 VERSION
28              
29             version 1.0.3
30              
31             =head1 SYNOPSIS
32              
33             my $sietima = Sietima->with_traits('SubscribersOnly::Drop')->new({
34             %args,
35             });
36              
37             =head1 DESCRIPTION
38              
39             A L<< C<Sietima> >> list with this role applied will silently discard
40             every incoming email that does not come from one of the list's
41             subscribers.
42              
43             This is a "sub-role" of L<<
44             C<SubscribersOnly>|Sietima::Role::SubscriberOnly >>.
45              
46             =head1 METHODS
47              
48             =head2 C<munge_mail_from_non_subscriber>
49              
50             Does nothing, returns an empty list.
51              
52             =head1 AUTHOR
53              
54             Gianni Ceccarelli <dakkar@thenautilus.net>
55              
56             =head1 COPYRIGHT AND LICENSE
57              
58             This software is copyright (c) 2017 by Gianni Ceccarelli <dakkar@thenautilus.net>.
59              
60             This is free software; you can redistribute it and/or modify it under
61             the same terms as the Perl 5 programming language system itself.
62              
63             =cut