« lib/Mail/DMARC/Report/Aggregate/Record/Auth_Results/SPF.pm
↑ Summary
lib/Mail/DMARC/Report/Send/SMTP.pm »
| 1 | package Mail::DMARC::Report::Aggregate::Record::Identifiers; | ||
| 2 | our $VERSION = '2.20260827'; | ||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | use feature 'signatures'; | ||
| 6 | no warnings 'experimental::args_array_with_signatures'; ## no critic (ProhibitNoWarnings) | ||
| 7 | |||
| 8 | use Carp; | ||
| 9 | |||
| 10 | sub new( $class, @args ) { | ||
| 11 | croak "invalid arguments" if @args % 2; | ||
| 12 | my %args = @args; | ||
| 13 | my $self = bless {}, $class; | ||
| 14 | foreach my $key ( keys %args ) { | ||
| 15 | $self->$key( $args{$key} ); | ||
| 16 | } | ||
| 17 | return $self; | ||
| 18 | } | ||
| 19 | |||
| 20 | sub envelope_to( $self, $value = undef ) { | ||
| 21 | return $self->{envelope_to} if @_ == 1; | ||
| 22 | return $self->{envelope_to} = $value; | ||
| 23 | } | ||
| 24 | |||
| 25 | sub envelope_from( $self, $value = undef ) { | ||
| 26 | return $self->{envelope_from} if @_ == 1; | ||
| 27 | return $self->{envelope_from} = $value; | ||
| 28 | } | ||
| 29 | |||
| 30 | sub header_from( $self, $value = undef ) { | ||
| 31 | return $self->{header_from} if @_ == 1; | ||
| 32 | return $self->{header_from} = $value; | ||
| 33 | } | ||
| 34 | |||
| 35 | 1; | ||
| 36 | |||
| 37 | __END__ | ||
| 38 | |||
| 39 | =pod | ||
| 40 | |||
| 41 | =head1 NAME | ||
| 42 | |||
| 43 | Mail::DMARC::Report::Aggregate::Record::Identifiers - identifiers section of a DMARC aggregate record | ||
| 44 | |||
| 45 | =head1 VERSION | ||
| 46 | |||
| 47 | version 2.20260827 | ||
| 48 | |||
| 49 | =head1 AUTHORS | ||
| 50 | |||
| 51 | =over 4 | ||
| 52 | |||
| 53 | =item * | ||
| 54 | |||
| 55 | Matt Simerson <msimerson@cpan.org> | ||
| 56 | |||
| 57 | =item * | ||
| 58 | |||
| 59 | Davide Migliavacca <shari@cpan.org> | ||
| 60 | |||
| 61 | =item * | ||
| 62 | |||
| 63 | Marc Bradshaw <marc@marcbradshaw.net> | ||
| 64 | |||
| 65 | =back | ||
| 66 | |||
| 67 | =head1 COPYRIGHT AND LICENSE | ||
| 68 | |||
| 69 | This software is copyright (c) 2026 by Matt Simerson. | ||
| 70 | |||
| 71 | This is free software; you can redistribute it and/or modify it under | ||
| 72 | the same terms as the Perl 5 programming language system itself. | ||
| 73 | |||
| 74 | =cut |