NAME

Sietima::Role::NoMail - don't send mail to those who don't want it

VERSION

version 1.1.2

SYNOPSIS

my $sietima = Sietima->with_traits('NoMail')->new({
 %args,
 subscribers => [
  { primary => 'write-only@example.com', prefs => { wants_mail => 0 } },
  @other_subscribers,
 ],
});

DESCRIPTION

A Sietima list with this role applied will not send messages to subscribers that have the wants_mail preference set to a false value.

MODIFIED METHODS

subscribers_to_send_to

Filters out subscribers that have the wants_mail preference set to a false value.

AUTHOR

Gianni Ceccarelli <dakkar@thenautilus.net>

COPYRIGHT AND LICENSE

This software is copyright (c) 2023 by Gianni Ceccarelli <dakkar@thenautilus.net>.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.