NAME
Sietima::Role::Headers - adds standard list-related headers to messages
VERSION
version 1.0.0
SYNOPSIS
my $sietima = Sietima->with_traits('Headers')->new({
%args,
name => $name_of_the_list,
});
DESCRIPTION
A Sietima
list with this role applied will add, to each outgoing message, the set of headers defined in RFC 2919 and RFC 2369.
This role uses the list_addresses
method to determine what headers to add.
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).
Other List-*:
headers are built from the other values in the list_addresses
hashref. Those values can either be Email::Address
objects (in which case the header will have a mailto:
URI as value) or strings (which will be used literally for the value of the header).
ATTRIBUTES
name
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).
MODIFIED METHODS
munge_mail
This method adds list-management headers to each message returned by the original method.
AUTHOR
Gianni Ceccarelli <dakkar@thenautilus.net>
COPYRIGHT AND LICENSE
This software is copyright (c) 2017 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.