aboutsummaryrefslogtreecommitdiff
path: root/lib/Sietima/Role/SubscriberOnly/Drop.pm
blob: 029889f16124ad565702fde6e8d1d24c293856dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package Sietima::Role::SubscriberOnly::Drop; 
use Moo::Role;
use Sietima::Policy;
use namespace::clean;
 
=head1 NAME
 
Sietima::Role::SubscriberOnly::Drop - drop messages from non-subscribers
 
=head1 SYNOPSIS
 
  my $sietima = Sietima->with_traits('SubscribersOnly::Drop')->new({
    %args,
  });
 
=head1 DESCRIPTION
 
A L<< C<Sietima> >> list with this role applied will silently discard
every incoming email that does not come from one of the list's
subscribers.
 
This is a "sub-role" of L<<
C<SubscribersOnly>|Sietima::Role::SubscriberOnly >>.
 
=cut
 
with 'Sietima::Role::SubscriberOnly';
 
=head1 METHODS
 
=head2 C<munge_mail_from_non_subscriber>
 
Does nothing, returns an empty list.
 
=cut
 
sub munge_mail_from_non_subscriber { }
 
1;