Sietima::Role::Headers - adds standard list-related headers to messages
version 1.1.2
my $sietima = Sietima->with_traits('Headers')->new({ %args, name => $name_of_the_list, });
A Sietima list with this role applied will add, to each outgoing message, the set of headers defined in RFC 2919 and RFC 2369.
Sietima
This role uses the list_addresses method to determine what headers to add.
list_addresses
If the name attribute is set, a List-Id: header will be added, with a value built out of the name and the $self->list_addresses->{return_path} value (which is normally the same as the return_path attribute).
name
List-Id:
$self->list_addresses->{return_path}
return_path
Other List-*: headers are built from the other values in the list_addresses hashref. Each of those values can be:
List-*:
an Sietima::HeaderURI object
Sietima::HeaderURI
a thing that can be passed to that class's constructor:
an Email::Address object
Email::Address
a URI object
URI
a string parseable as either
an arrayref containing any mix of the above
As a special case, if $self->list_addresses->{post} exists and is false, the List-Post header will have the value NO to indicate that the list does not accept incoming messages (e.g. it's an announcement list).
$self->list_addresses->{post}
List-Post
NO
Optional string, the name of the mailing list. If this attribute is set, a List-Id: header will be added, with a value built out of the name and the $self->list_addresses->{return_path} value (which is normally the same as the return_path attribute).
munge_mail
This method adds list-management headers to each message returned by the original method.
Gianni Ceccarelli <dakkar@thenautilus.net>
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.
To install Sietima, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Sietima
CPAN shell
perl -MCPAN -e shell install Sietima
For more information on module installation, please visit the detailed CPAN module installation guide.