package Mail::DMARC::Report::Aggregate::Record::Identifiers; our $VERSION = '1.20240313'; use strict; use warnings; use Carp; sub new { my ( $class, @args ) = @_; croak "invalid arguments" if @args % 2; my %args = @args; my $self = bless {}, $class; foreach my $key ( keys %args ) { $self->$key( $args{$key} ); } return $self; } sub envelope_to { return $_[0]->{envelope_to} if 1 == scalar @_; return $_[0]->{envelope_to} = $_[1]; } sub envelope_from { return $_[0]->{envelope_from} if 1 == scalar @_; return $_[0]->{envelope_from} = $_[1]; } sub header_from { return $_[0]->{header_from} if 1 == scalar @_; return $_[0]->{header_from} = $_[1]; } 1; __END__ =pod =head1 NAME Mail::DMARC::Report::Aggregate::Record::Identifiers - identifiers section of a DMARC aggregate record =head1 VERSION version 1.20240313 =head1 AUTHORS =over 4 =item * Matt Simerson =item * Davide Migliavacca =item * Marc Bradshaw =back =head1 COPYRIGHT AND LICENSE This software is copyright (c) 2024 by Matt Simerson. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. =cut