Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package perl-Mail-DKIM for openSUSE:Factory checked in at 2022-04-16 00:12:53 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-Mail-DKIM (Old) and /work/SRC/openSUSE:Factory/.perl-Mail-DKIM.new.1941 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Mail-DKIM" Sat Apr 16 00:12:53 2022 rev:29 rq:969988 version:1.20220408 Changes: -------- --- /work/SRC/openSUSE:Factory/perl-Mail-DKIM/perl-Mail-DKIM.changes 2020-10-24 15:13:31.403957130 +0200 +++ /work/SRC/openSUSE:Factory/.perl-Mail-DKIM.new.1941/perl-Mail-DKIM.changes 2022-04-16 00:12:59.197547945 +0200 @@ -1,0 +2,9 @@ +Sat Apr 9 03:07:19 UTC 2022 - Tina M??ller <timueller+p...@suse.de> + +- updated to 1.20220408 + see /usr/share/doc/packages/perl-Mail-DKIM/Changes + + 1.20220408 2022-04-08 UTC + + Add support for signatures with an Expiration value + +------------------------------------------------------------------- Old: ---- Mail-DKIM-1.20200907.tar.gz New: ---- Mail-DKIM-1.20220408.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-Mail-DKIM.spec ++++++ --- /var/tmp/diff_new_pack.dhJd34/_old 2022-04-16 00:13:00.117549173 +0200 +++ /var/tmp/diff_new_pack.dhJd34/_new 2022-04-16 00:13:00.121549179 +0200 @@ -1,7 +1,7 @@ # # spec file for package perl-Mail-DKIM # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,18 +16,16 @@ # +%define cpan_name Mail-DKIM Name: perl-Mail-DKIM -Version: 1.20200907 +Version: 1.20220408 Release: 0 -%define cpan_name Mail-DKIM -Summary: Signs/verifies Internet mail with DKIM/DomainKey signatures License: Artistic-1.0 OR GPL-1.0-or-later -Group: Development/Libraries/Perl +Summary: Signs/verifies Internet mail with DKIM/DomainKey signatures URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/M/MB/MBRADSHAW/%{cpan_name}-%{version}.tar.gz Source1: cpanspec.yml BuildArch: noarch -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Crypt::OpenSSL::RSA) @@ -72,12 +70,12 @@ headers will get sorted keys %prep -%setup -q -n %{cpan_name}-%{version} +%autosetup -n %{cpan_name}-%{version} find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644 %build perl Makefile.PL INSTALLDIRS=vendor -make %{?_smp_mflags} +%make_build %check make test @@ -88,7 +86,6 @@ %perl_gen_filelist %files -f %{name}.files -%defattr(-,root,root,755) %doc Changes doc HACKING.DKIM README README.md TODO %license LICENSE ++++++ Mail-DKIM-1.20200907.tar.gz -> Mail-DKIM-1.20220408.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Mail-DKIM-1.20200907/Changes new/Mail-DKIM-1.20220408/Changes --- old/Mail-DKIM-1.20200907/Changes 2020-09-07 07:49:28.000000000 +0200 +++ new/Mail-DKIM-1.20220408/Changes 2022-04-08 06:05:06.000000000 +0200 @@ -1,5 +1,8 @@ This file summarizes what's changed between releases of Mail-DKIM. +1.20220408 2022-04-08 UTC + + Add support for signatures with an Expiration value + 1.20200907 2020-09-07 UTC * ARC::Signer: Preserve leading fold from AR (if any) when copying to AAR. Thanks to @dev-aaront-org diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Mail-DKIM-1.20200907/MANIFEST new/Mail-DKIM-1.20220408/MANIFEST --- old/Mail-DKIM-1.20200907/MANIFEST 2020-09-07 07:49:28.000000000 +0200 +++ new/Mail-DKIM-1.20220408/MANIFEST 2022-04-08 06:05:06.000000000 +0200 @@ -1,4 +1,4 @@ -# This file was automatically generated by Dist::Zilla::Plugin::Manifest v6.014. +# This file was automatically generated by Dist::Zilla::Plugin::Manifest v6.017. Changes HACKING.DKIM LICENSE @@ -152,6 +152,7 @@ t/signature.t t/signer.t t/signer_dk.t +t/signer_expiration.t t/signer_policy.t t/simple_canonicalization.t t/test.key diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Mail-DKIM-1.20200907/META.json new/Mail-DKIM-1.20220408/META.json --- old/Mail-DKIM-1.20200907/META.json 2020-09-07 07:49:28.000000000 +0200 +++ new/Mail-DKIM-1.20220408/META.json 2022-04-08 06:05:06.000000000 +0200 @@ -4,7 +4,7 @@ "Marc Bradshaw <m...@marcbradshaw.net>" ], "dynamic_config" : 0, - "generated_by" : "Dist::Zilla version 6.014, CPAN::Meta::Converter version 2.150010", + "generated_by" : "Dist::Zilla version 6.017, CPAN::Meta::Converter version 2.150010", "license" : [ "perl_5" ], @@ -67,7 +67,7 @@ "web" : "https://github.com/fastmail/mail-dkim/" } }, - "version" : "1.20200907", + "version" : "1.20220408", "x_contributors" : [ "Aaron Thompson <d...@aaront.org>", "Bron Gondwana <br...@fastmail.fm>", @@ -75,12 +75,13 @@ "Damien MASCR\u00c9 <damienmas...@free.fr>", "jasonlong <jasonlong@f38efd27-133c-0410-a3cc-a5f95e9cf04f>", "Jose\u0301 Borges Ferreira <jose.ferre...@bitsighttech.com>", + "Marc Bradshaw <m...@fastmailteam.com>", "Martijn van de Streek <mart...@vandestreek.net>", "Martin H. Sluka <mar...@sluka.de>", "Mohammad S Anwar <mohammad.an...@yahoo.com>" ], - "x_generated_by_perl" : "v5.30.1", - "x_serialization_backend" : "Cpanel::JSON::XS version 4.19", + "x_generated_by_perl" : "v5.34.0", + "x_serialization_backend" : "Cpanel::JSON::XS version 4.26", "x_spdx_expression" : "Artistic-1.0-Perl OR GPL-1.0-or-later" } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Mail-DKIM-1.20200907/META.yml new/Mail-DKIM-1.20220408/META.yml --- old/Mail-DKIM-1.20200907/META.yml 2020-09-07 07:49:28.000000000 +0200 +++ new/Mail-DKIM-1.20220408/META.yml 2022-04-08 06:05:06.000000000 +0200 @@ -15,7 +15,7 @@ configure_requires: ExtUtils::MakeMaker: '0' dynamic_config: 0 -generated_by: 'Dist::Zilla version 6.014, CPAN::Meta::Converter version 2.150010' +generated_by: 'Dist::Zilla version 6.017, CPAN::Meta::Converter version 2.150010' license: perl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html @@ -36,7 +36,7 @@ resources: bugtracker: https://github.com/fastmail/mail-dkim/issues repository: git://github.com/fastmail/mail-dkim.git -version: '1.20200907' +version: '1.20220408' x_contributors: - 'Aaron Thompson <d...@aaront.org>' - 'Bron Gondwana <br...@fastmail.fm>' @@ -44,9 +44,10 @@ - 'Damien MASCR?? <damienmas...@free.fr>' - 'jasonlong <jasonlong@f38efd27-133c-0410-a3cc-a5f95e9cf04f>' - 'Jose?? Borges Ferreira <jose.ferre...@bitsighttech.com>' + - 'Marc Bradshaw <m...@fastmailteam.com>' - 'Martijn van de Streek <mart...@vandestreek.net>' - 'Martin H. Sluka <mar...@sluka.de>' - 'Mohammad S Anwar <mohammad.an...@yahoo.com>' -x_generated_by_perl: v5.30.1 +x_generated_by_perl: v5.34.0 x_serialization_backend: 'YAML::Tiny version 1.73' x_spdx_expression: 'Artistic-1.0-Perl OR GPL-1.0-or-later' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Mail-DKIM-1.20200907/Makefile.PL new/Mail-DKIM-1.20220408/Makefile.PL --- old/Mail-DKIM-1.20200907/Makefile.PL 2020-09-07 07:49:28.000000000 +0200 +++ new/Mail-DKIM-1.20220408/Makefile.PL 2022-04-08 06:05:06.000000000 +0200 @@ -1,4 +1,4 @@ -# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v6.014. +# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v6.017. use strict; use warnings; @@ -39,7 +39,7 @@ "YAML::XS" => 0, "lib" => 0 }, - "VERSION" => "1.20200907", + "VERSION" => "1.20220408", "test" => { "TESTS" => "t/*.t" } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Mail-DKIM-1.20200907/README new/Mail-DKIM-1.20220408/README --- old/Mail-DKIM-1.20200907/README 2020-09-07 07:49:28.000000000 +0200 +++ new/Mail-DKIM-1.20220408/README 2022-04-08 06:05:06.000000000 +0200 @@ -1,5 +1,5 @@ This archive contains the distribution Mail-DKIM, -version 1.20200907: +version 1.20220408: Signs/verifies Internet mail with DKIM/DomainKey signatures @@ -9,4 +9,4 @@ the same terms as the Perl 5 programming language system itself. -This README file was generated by Dist::Zilla::Plugin::Readme v6.014. +This README file was generated by Dist::Zilla::Plugin::Readme v6.017. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Mail-DKIM-1.20200907/lib/Mail/DKIM/ARC/MessageSignature.pm new/Mail-DKIM-1.20220408/lib/Mail/DKIM/ARC/MessageSignature.pm --- old/Mail-DKIM-1.20200907/lib/Mail/DKIM/ARC/MessageSignature.pm 2020-09-07 07:49:28.000000000 +0200 +++ new/Mail-DKIM-1.20220408/lib/Mail/DKIM/ARC/MessageSignature.pm 2022-04-08 06:05:06.000000000 +0200 @@ -1,7 +1,7 @@ package Mail::DKIM::ARC::MessageSignature; use strict; use warnings; -our $VERSION = '1.20200907'; # VERSION +our $VERSION = '1.20220408'; # VERSION # ABSTRACT: Subclass of Mail::DKIM::Signature which represents a ARC-Message-Signature header # Copyright 2017 FastMail Pty Ltd. All Rights Reserved. @@ -69,7 +69,7 @@ =head1 VERSION -version 1.20200907 +version 1.20220408 =head1 CONSTRUCTORS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Mail-DKIM-1.20200907/lib/Mail/DKIM/ARC/Seal.pm new/Mail-DKIM-1.20220408/lib/Mail/DKIM/ARC/Seal.pm --- old/Mail-DKIM-1.20200907/lib/Mail/DKIM/ARC/Seal.pm 2020-09-07 07:49:28.000000000 +0200 +++ new/Mail-DKIM-1.20220408/lib/Mail/DKIM/ARC/Seal.pm 2022-04-08 06:05:06.000000000 +0200 @@ -1,7 +1,7 @@ package Mail::DKIM::ARC::Seal; use strict; use warnings; -our $VERSION = '1.20200907'; # VERSION +our $VERSION = '1.20220408'; # VERSION # ABSTRACT: represents a ARC-Seal header # Copyright 2017 FastMail Pty Ltd. All Rights Reserved. @@ -76,7 +76,7 @@ =head1 VERSION -version 1.20200907 +version 1.20220408 =head1 CONSTRUCTORS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Mail-DKIM-1.20200907/lib/Mail/DKIM/ARC/Signer.pm new/Mail-DKIM-1.20220408/lib/Mail/DKIM/ARC/Signer.pm --- old/Mail-DKIM-1.20200907/lib/Mail/DKIM/ARC/Signer.pm 2020-09-07 07:49:28.000000000 +0200 +++ new/Mail-DKIM-1.20220408/lib/Mail/DKIM/ARC/Signer.pm 2022-04-08 06:05:06.000000000 +0200 @@ -1,7 +1,7 @@ package Mail::DKIM::ARC::Signer; use strict; use warnings; -our $VERSION = '1.20200907'; # VERSION +our $VERSION = '1.20220408'; # VERSION # ABSTRACT: generates a DKIM signature for a message # Copyright 2017 FastMail Pty Ltd. All Rights Reserved. @@ -247,6 +247,7 @@ Key => $self->{Key}, KeyFile => $self->{KeyFile}, ( $self->{Timestamp} ? ( Timestamp => $self->{Timestamp} ) : () ), + ( $self->{Expiration} ? ( Expiration => $self->{Expiration} ) : () ), ) ); @@ -312,6 +313,7 @@ Key => $self->{Key}, KeyFile => $self->{KeyFile}, ( $self->{Timestamp} ? ( Timestamp => $self->{Timestamp} ) : () ), + ( $self->{Expiration} ? ( Expiration => $self->{Expiration} ) : () ), ) ); @@ -592,7 +594,7 @@ =head1 VERSION -version 1.20200907 +version 1.20220408 =head1 SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Mail-DKIM-1.20200907/lib/Mail/DKIM/ARC/Verifier.pm new/Mail-DKIM-1.20220408/lib/Mail/DKIM/ARC/Verifier.pm --- old/Mail-DKIM-1.20200907/lib/Mail/DKIM/ARC/Verifier.pm 2020-09-07 07:49:28.000000000 +0200 +++ new/Mail-DKIM-1.20220408/lib/Mail/DKIM/ARC/Verifier.pm 2022-04-08 06:05:06.000000000 +0200 @@ -1,7 +1,7 @@ package Mail::DKIM::ARC::Verifier; use strict; use warnings; -our $VERSION = '1.20200907'; # VERSION +our $VERSION = '1.20220408'; # VERSION # ABSTRACT: verifies an ARC-Sealed message # Copyright 2017 FastMail Pty Ltd. All Rights Reserved. @@ -621,7 +621,7 @@ =head1 VERSION -version 1.20200907 +version 1.20220408 =head1 SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Mail-DKIM-1.20200907/lib/Mail/DKIM/Algorithm/Base.pm new/Mail-DKIM-1.20220408/lib/Mail/DKIM/Algorithm/Base.pm --- old/Mail-DKIM-1.20200907/lib/Mail/DKIM/Algorithm/Base.pm 2020-09-07 07:49:28.000000000 +0200 +++ new/Mail-DKIM-1.20220408/lib/Mail/DKIM/Algorithm/Base.pm 2022-04-08 06:05:06.000000000 +0200 @@ -1,7 +1,7 @@ package Mail::DKIM::Algorithm::Base; use strict; use warnings; -our $VERSION = '1.20200907'; # VERSION +our $VERSION = '1.20220408'; # VERSION # ABSTRACT: base class for DKIM "algorithms" # Copyright 2005-2007 Messiah College. All rights reserved. @@ -187,7 +187,7 @@ =head1 VERSION -version 1.20200907 +version 1.20220408 =head1 SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Mail-DKIM-1.20200907/lib/Mail/DKIM/Algorithm/dk_rsa_sha1.pm new/Mail-DKIM-1.20220408/lib/Mail/DKIM/Algorithm/dk_rsa_sha1.pm --- old/Mail-DKIM-1.20200907/lib/Mail/DKIM/Algorithm/dk_rsa_sha1.pm 2020-09-07 07:49:28.000000000 +0200 +++ new/Mail-DKIM-1.20220408/lib/Mail/DKIM/Algorithm/dk_rsa_sha1.pm 2022-04-08 06:05:06.000000000 +0200 @@ -1,7 +1,7 @@ package Mail::DKIM::Algorithm::dk_rsa_sha1; use strict; use warnings; -our $VERSION = '1.20200907'; # VERSION +our $VERSION = '1.20220408'; # VERSION # ABSTRACT: Base algorithm class # Copyright 2005-2006 Messiah College. All rights reserved. @@ -134,7 +134,7 @@ =head1 VERSION -version 1.20200907 +version 1.20220408 =head1 AUTHORS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Mail-DKIM-1.20200907/lib/Mail/DKIM/Algorithm/rsa_sha1.pm new/Mail-DKIM-1.20220408/lib/Mail/DKIM/Algorithm/rsa_sha1.pm --- old/Mail-DKIM-1.20200907/lib/Mail/DKIM/Algorithm/rsa_sha1.pm 2020-09-07 07:49:28.000000000 +0200 +++ new/Mail-DKIM-1.20220408/lib/Mail/DKIM/Algorithm/rsa_sha1.pm 2022-04-08 06:05:06.000000000 +0200 @@ -1,7 +1,7 @@ package Mail::DKIM::Algorithm::rsa_sha1; use strict; use warnings; -our $VERSION = '1.20200907'; # VERSION +our $VERSION = '1.20220408'; # VERSION # ABSTRACT: rsa sha1 algorithm class # Copyright 2005-2006 Messiah College. All rights reserved. @@ -66,7 +66,7 @@ =head1 VERSION -version 1.20200907 +version 1.20220408 =head1 AUTHORS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Mail-DKIM-1.20200907/lib/Mail/DKIM/Algorithm/rsa_sha256.pm new/Mail-DKIM-1.20220408/lib/Mail/DKIM/Algorithm/rsa_sha256.pm --- old/Mail-DKIM-1.20200907/lib/Mail/DKIM/Algorithm/rsa_sha256.pm 2020-09-07 07:49:28.000000000 +0200 +++ new/Mail-DKIM-1.20220408/lib/Mail/DKIM/Algorithm/rsa_sha256.pm 2022-04-08 06:05:06.000000000 +0200 @@ -1,7 +1,7 @@ package Mail::DKIM::Algorithm::rsa_sha256; use strict; use warnings; -our $VERSION = '1.20200907'; # VERSION +our $VERSION = '1.20220408'; # VERSION # ABSTRACT: rsa sha256 algorithm class # Copyright 2005-2006 Messiah College. All rights reserved. @@ -66,7 +66,7 @@ =head1 VERSION -version 1.20200907 +version 1.20220408 =head1 AUTHORS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Mail-DKIM-1.20200907/lib/Mail/DKIM/AuthorDomainPolicy.pm new/Mail-DKIM-1.20220408/lib/Mail/DKIM/AuthorDomainPolicy.pm --- old/Mail-DKIM-1.20200907/lib/Mail/DKIM/AuthorDomainPolicy.pm 2020-09-07 07:49:28.000000000 +0200 +++ new/Mail-DKIM-1.20220408/lib/Mail/DKIM/AuthorDomainPolicy.pm 2022-04-08 06:05:06.000000000 +0200 @@ -1,7 +1,7 @@ package Mail::DKIM::AuthorDomainPolicy; use strict; use warnings; -our $VERSION = '1.20200907'; # VERSION +our $VERSION = '1.20220408'; # VERSION # ABSTRACT: represents an Author Domain Signing Practices (ADSP) record # Copyright 2005-2009 Messiah College. @@ -195,7 +195,7 @@ =head1 VERSION -version 1.20200907 +version 1.20220408 =head1 DESCRIPTION diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Mail-DKIM-1.20200907/lib/Mail/DKIM/Canonicalization/Base.pm new/Mail-DKIM-1.20220408/lib/Mail/DKIM/Canonicalization/Base.pm --- old/Mail-DKIM-1.20200907/lib/Mail/DKIM/Canonicalization/Base.pm 2020-09-07 07:49:28.000000000 +0200 +++ new/Mail-DKIM-1.20220408/lib/Mail/DKIM/Canonicalization/Base.pm 2022-04-08 06:05:06.000000000 +0200 @@ -1,7 +1,7 @@ package Mail::DKIM::Canonicalization::Base; use strict; use warnings; -our $VERSION = '1.20200907'; # VERSION +our $VERSION = '1.20220408'; # VERSION # ABSTRACT: base class for canonicalization methods # Copyright 2005-2007 Messiah College. All rights reserved. @@ -85,7 +85,7 @@ =head1 VERSION -version 1.20200907 +version 1.20220408 =head1 SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Mail-DKIM-1.20200907/lib/Mail/DKIM/Canonicalization/DkCommon.pm new/Mail-DKIM-1.20220408/lib/Mail/DKIM/Canonicalization/DkCommon.pm --- old/Mail-DKIM-1.20200907/lib/Mail/DKIM/Canonicalization/DkCommon.pm 2020-09-07 07:49:28.000000000 +0200 +++ new/Mail-DKIM-1.20220408/lib/Mail/DKIM/Canonicalization/DkCommon.pm 2022-04-08 06:05:06.000000000 +0200 @@ -1,7 +1,7 @@ package Mail::DKIM::Canonicalization::DkCommon; use strict; use warnings; -our $VERSION = '1.20200907'; # VERSION +our $VERSION = '1.20220408'; # VERSION # ABSTRACT: dk common canonicalization # Copyright 2005-2006 Messiah College. All rights reserved. @@ -150,7 +150,7 @@ =head1 VERSION -version 1.20200907 +version 1.20220408 =head1 AUTHORS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Mail-DKIM-1.20200907/lib/Mail/DKIM/Canonicalization/DkimCommon.pm new/Mail-DKIM-1.20220408/lib/Mail/DKIM/Canonicalization/DkimCommon.pm --- old/Mail-DKIM-1.20200907/lib/Mail/DKIM/Canonicalization/DkimCommon.pm 2020-09-07 07:49:28.000000000 +0200 +++ new/Mail-DKIM-1.20220408/lib/Mail/DKIM/Canonicalization/DkimCommon.pm 2022-04-08 06:05:06.000000000 +0200 @@ -1,7 +1,7 @@ package Mail::DKIM::Canonicalization::DkimCommon; use strict; use warnings; -our $VERSION = '1.20200907'; # VERSION +our $VERSION = '1.20220408'; # VERSION # ABSTRACT: common canonicalization # Copyright 2005-2007 Messiah College. All rights reserved. @@ -144,7 +144,7 @@ =head1 VERSION -version 1.20200907 +version 1.20220408 =head1 DESCRIPTION diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Mail-DKIM-1.20200907/lib/Mail/DKIM/Canonicalization/dk_nofws.pm new/Mail-DKIM-1.20220408/lib/Mail/DKIM/Canonicalization/dk_nofws.pm --- old/Mail-DKIM-1.20200907/lib/Mail/DKIM/Canonicalization/dk_nofws.pm 2020-09-07 07:49:28.000000000 +0200 +++ new/Mail-DKIM-1.20220408/lib/Mail/DKIM/Canonicalization/dk_nofws.pm 2022-04-08 06:05:06.000000000 +0200 @@ -1,7 +1,7 @@ package Mail::DKIM::Canonicalization::dk_nofws; use strict; use warnings; -our $VERSION = '1.20200907'; # VERSION +our $VERSION = '1.20220408'; # VERSION # ABSTRACT: nofws canonicalization # Copyright 2005-2006 Messiah College. All rights reserved. @@ -45,7 +45,7 @@ =head1 VERSION -version 1.20200907 +version 1.20220408 =head1 AUTHORS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Mail-DKIM-1.20200907/lib/Mail/DKIM/Canonicalization/dk_simple.pm new/Mail-DKIM-1.20220408/lib/Mail/DKIM/Canonicalization/dk_simple.pm --- old/Mail-DKIM-1.20200907/lib/Mail/DKIM/Canonicalization/dk_simple.pm 2020-09-07 07:49:28.000000000 +0200 +++ new/Mail-DKIM-1.20220408/lib/Mail/DKIM/Canonicalization/dk_simple.pm 2022-04-08 06:05:06.000000000 +0200 @@ -1,7 +1,7 @@ package Mail::DKIM::Canonicalization::dk_simple; use strict; use warnings; -our $VERSION = '1.20200907'; # VERSION +our $VERSION = '1.20220408'; # VERSION # ABSTRACT: dk simple canonicalization # Copyright 2005 Messiah College. All rights reserved. @@ -75,7 +75,7 @@ =head1 VERSION -version 1.20200907 +version 1.20220408 =head1 AUTHORS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Mail-DKIM-1.20200907/lib/Mail/DKIM/Canonicalization/nowsp.pm new/Mail-DKIM-1.20220408/lib/Mail/DKIM/Canonicalization/nowsp.pm --- old/Mail-DKIM-1.20200907/lib/Mail/DKIM/Canonicalization/nowsp.pm 2020-09-07 07:49:28.000000000 +0200 +++ new/Mail-DKIM-1.20220408/lib/Mail/DKIM/Canonicalization/nowsp.pm 2022-04-08 06:05:06.000000000 +0200 @@ -1,7 +1,7 @@ package Mail::DKIM::Canonicalization::nowsp; use strict; use warnings; -our $VERSION = '1.20200907'; # VERSION +our $VERSION = '1.20220408'; # VERSION # ABSTRACT: nowsp canonicalization # Copyright 2005 Messiah College. All rights reserved. @@ -57,7 +57,7 @@ =head1 VERSION -version 1.20200907 +version 1.20220408 =head1 AUTHORS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Mail-DKIM-1.20200907/lib/Mail/DKIM/Canonicalization/relaxed.pm new/Mail-DKIM-1.20220408/lib/Mail/DKIM/Canonicalization/relaxed.pm --- old/Mail-DKIM-1.20200907/lib/Mail/DKIM/Canonicalization/relaxed.pm 2020-09-07 07:49:28.000000000 +0200 +++ new/Mail-DKIM-1.20220408/lib/Mail/DKIM/Canonicalization/relaxed.pm 2022-04-08 06:05:06.000000000 +0200 @@ -1,7 +1,7 @@ package Mail::DKIM::Canonicalization::relaxed; use strict; use warnings; -our $VERSION = '1.20200907'; # VERSION +our $VERSION = '1.20220408'; # VERSION # ABSTRACT: common canonicalization # Copyright 2005 Messiah College. All rights reserved. @@ -123,7 +123,7 @@ =head1 VERSION -version 1.20200907 +version 1.20220408 =head1 AUTHORS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Mail-DKIM-1.20200907/lib/Mail/DKIM/Canonicalization/seal.pm new/Mail-DKIM-1.20220408/lib/Mail/DKIM/Canonicalization/seal.pm --- old/Mail-DKIM-1.20200907/lib/Mail/DKIM/Canonicalization/seal.pm 2020-09-07 07:49:28.000000000 +0200 +++ new/Mail-DKIM-1.20220408/lib/Mail/DKIM/Canonicalization/seal.pm 2022-04-08 06:05:06.000000000 +0200 @@ -1,7 +1,7 @@ package Mail::DKIM::Canonicalization::seal; use strict; use warnings; -our $VERSION = '1.20200907'; # VERSION +our $VERSION = '1.20220408'; # VERSION # ABSTRACT: arc seal canonicalization # Copyright 2017 FastMail Pty Ltd. All Rights Reserved. @@ -116,7 +116,7 @@ =head1 VERSION -version 1.20200907 +version 1.20220408 =head1 AUTHORS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Mail-DKIM-1.20200907/lib/Mail/DKIM/Canonicalization/simple.pm new/Mail-DKIM-1.20220408/lib/Mail/DKIM/Canonicalization/simple.pm --- old/Mail-DKIM-1.20200907/lib/Mail/DKIM/Canonicalization/simple.pm 2020-09-07 07:49:28.000000000 +0200 +++ new/Mail-DKIM-1.20220408/lib/Mail/DKIM/Canonicalization/simple.pm 2022-04-08 06:05:06.000000000 +0200 @@ -1,7 +1,7 @@ package Mail::DKIM::Canonicalization::simple; use strict; use warnings; -our $VERSION = '1.20200907'; # VERSION +our $VERSION = '1.20220408'; # VERSION # ABSTRACT: simple canonicalization # Copyright 2005 Messiah College. All rights reserved. @@ -96,7 +96,7 @@ =head1 VERSION -version 1.20200907 +version 1.20220408 =head1 AUTHORS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Mail-DKIM-1.20200907/lib/Mail/DKIM/Common.pm new/Mail-DKIM-1.20220408/lib/Mail/DKIM/Common.pm --- old/Mail-DKIM-1.20200907/lib/Mail/DKIM/Common.pm 2020-09-07 07:49:28.000000000 +0200 +++ new/Mail-DKIM-1.20220408/lib/Mail/DKIM/Common.pm 2022-04-08 06:05:06.000000000 +0200 @@ -1,7 +1,7 @@ package Mail::DKIM::Common; use strict; use warnings; -our $VERSION = '1.20200907'; # VERSION +our $VERSION = '1.20220408'; # VERSION # ABSTRACT: Common class for Mail::DKIM # Copyright 2005-2007 Messiah College. All rights reserved. @@ -181,7 +181,7 @@ =head1 VERSION -version 1.20200907 +version 1.20220408 =head1 AUTHORS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Mail-DKIM-1.20200907/lib/Mail/DKIM/DNS.pm new/Mail-DKIM-1.20220408/lib/Mail/DKIM/DNS.pm --- old/Mail-DKIM-1.20200907/lib/Mail/DKIM/DNS.pm 2020-09-07 07:49:28.000000000 +0200 +++ new/Mail-DKIM-1.20220408/lib/Mail/DKIM/DNS.pm 2022-04-08 06:05:06.000000000 +0200 @@ -1,7 +1,7 @@ package Mail::DKIM::DNS; use strict; use warnings; -our $VERSION = '1.20200907'; # VERSION +our $VERSION = '1.20220408'; # VERSION # ABSTRACT: performs DNS queries for Mail::DKIM # Copyright 2007, 2012 Messiah College. All rights reserved. @@ -184,7 +184,7 @@ =head1 VERSION -version 1.20200907 +version 1.20220408 =head1 DESCRIPTION diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Mail-DKIM-1.20200907/lib/Mail/DKIM/DkPolicy.pm new/Mail-DKIM-1.20220408/lib/Mail/DKIM/DkPolicy.pm --- old/Mail-DKIM-1.20200907/lib/Mail/DKIM/DkPolicy.pm 2020-09-07 07:49:28.000000000 +0200 +++ new/Mail-DKIM-1.20220408/lib/Mail/DKIM/DkPolicy.pm 2022-04-08 06:05:06.000000000 +0200 @@ -1,7 +1,7 @@ package Mail::DKIM::DkPolicy; use strict; use warnings; -our $VERSION = '1.20200907'; # VERSION +our $VERSION = '1.20220408'; # VERSION # ABSTRACT: represents a DomainKeys Sender Signing Policy record # Copyright 2005-2009 Messiah College. @@ -172,7 +172,7 @@ =head1 VERSION -version 1.20200907 +version 1.20220408 =head1 DESCRIPTION diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Mail-DKIM-1.20200907/lib/Mail/DKIM/DkSignature.pm new/Mail-DKIM-1.20220408/lib/Mail/DKIM/DkSignature.pm --- old/Mail-DKIM-1.20200907/lib/Mail/DKIM/DkSignature.pm 2020-09-07 07:49:28.000000000 +0200 +++ new/Mail-DKIM-1.20220408/lib/Mail/DKIM/DkSignature.pm 2022-04-08 06:05:06.000000000 +0200 @@ -1,7 +1,7 @@ package Mail::DKIM::DkSignature; use strict; use warnings; -our $VERSION = '1.20200907'; # VERSION +our $VERSION = '1.20220408'; # VERSION # ABSTRACT: represents a DomainKeys-Signature header # Copyright 2005-2006 Messiah College. All rights reserved. @@ -252,7 +252,7 @@ =head1 VERSION -version 1.20200907 +version 1.20220408 =head1 CONSTRUCTORS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Mail-DKIM-1.20200907/lib/Mail/DKIM/DkimPolicy.pm new/Mail-DKIM-1.20220408/lib/Mail/DKIM/DkimPolicy.pm --- old/Mail-DKIM-1.20200907/lib/Mail/DKIM/DkimPolicy.pm 2020-09-07 07:49:28.000000000 +0200 +++ new/Mail-DKIM-1.20220408/lib/Mail/DKIM/DkimPolicy.pm 2022-04-08 06:05:06.000000000 +0200 @@ -1,7 +1,7 @@ package Mail::DKIM::DkimPolicy; use strict; use warnings; -our $VERSION = '1.20200907'; # VERSION +our $VERSION = '1.20220408'; # VERSION # ABSTRACT: represents a DKIM Sender Signing Practices record # Copyright 2005-2007 Messiah College. @@ -193,7 +193,7 @@ =head1 VERSION -version 1.20200907 +version 1.20220408 =head1 DESCRIPTION diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Mail-DKIM-1.20200907/lib/Mail/DKIM/Key.pm new/Mail-DKIM-1.20220408/lib/Mail/DKIM/Key.pm --- old/Mail-DKIM-1.20200907/lib/Mail/DKIM/Key.pm 2020-09-07 07:49:28.000000000 +0200 +++ new/Mail-DKIM-1.20220408/lib/Mail/DKIM/Key.pm 2022-04-08 06:05:06.000000000 +0200 @@ -2,7 +2,7 @@ use strict; use warnings; # ABSTRACT: Represents a DKIM Key -our $VERSION = '1.20200907'; # VERSION +our $VERSION = '1.20220408'; # VERSION # Copyright 2006 Jason Long. All rights reserved. # @@ -101,7 +101,7 @@ =head1 VERSION -version 1.20200907 +version 1.20220408 =head1 AUTHORS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Mail-DKIM-1.20200907/lib/Mail/DKIM/KeyValueList.pm new/Mail-DKIM-1.20220408/lib/Mail/DKIM/KeyValueList.pm --- old/Mail-DKIM-1.20200907/lib/Mail/DKIM/KeyValueList.pm 2020-09-07 07:49:28.000000000 +0200 +++ new/Mail-DKIM-1.20220408/lib/Mail/DKIM/KeyValueList.pm 2022-04-08 06:05:06.000000000 +0200 @@ -1,7 +1,7 @@ package Mail::DKIM::KeyValueList; use strict; use warnings; -our $VERSION = '1.20200907'; # VERSION +our $VERSION = '1.20220408'; # VERSION # ABSTRACT: Represents a Key/Value list # Copyright 2005-2007 Messiah College. All rights reserved. @@ -195,7 +195,7 @@ =head1 VERSION -version 1.20200907 +version 1.20220408 =head1 AUTHORS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Mail-DKIM-1.20200907/lib/Mail/DKIM/MessageParser.pm new/Mail-DKIM-1.20220408/lib/Mail/DKIM/MessageParser.pm --- old/Mail-DKIM-1.20200907/lib/Mail/DKIM/MessageParser.pm 2020-09-07 07:49:28.000000000 +0200 +++ new/Mail-DKIM-1.20220408/lib/Mail/DKIM/MessageParser.pm 2022-04-08 06:05:06.000000000 +0200 @@ -1,7 +1,7 @@ package Mail::DKIM::MessageParser; use strict; use warnings; -our $VERSION = '1.20200907'; # VERSION +our $VERSION = '1.20220408'; # VERSION # ABSTRACT: Signs/verifies Internet mail with DKIM/DomainKey signatures # Copyright 2005 Messiah College. All rights reserved. @@ -142,7 +142,7 @@ =head1 VERSION -version 1.20200907 +version 1.20220408 =head1 AUTHORS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Mail-DKIM-1.20200907/lib/Mail/DKIM/Policy.pm new/Mail-DKIM-1.20220408/lib/Mail/DKIM/Policy.pm --- old/Mail-DKIM-1.20200907/lib/Mail/DKIM/Policy.pm 2020-09-07 07:49:28.000000000 +0200 +++ new/Mail-DKIM-1.20220408/lib/Mail/DKIM/Policy.pm 2022-04-08 06:05:06.000000000 +0200 @@ -1,7 +1,7 @@ package Mail::DKIM::Policy; use strict; use warnings; -our $VERSION = '1.20200907'; # VERSION +our $VERSION = '1.20220408'; # VERSION # ABSTRACT: abstract base class for originator "signing" policies # Copyright 2005-2007 Messiah College. @@ -162,7 +162,7 @@ =head1 VERSION -version 1.20200907 +version 1.20220408 =head1 SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Mail-DKIM-1.20200907/lib/Mail/DKIM/PrivateKey.pm new/Mail-DKIM-1.20220408/lib/Mail/DKIM/PrivateKey.pm --- old/Mail-DKIM-1.20200907/lib/Mail/DKIM/PrivateKey.pm 2020-09-07 07:49:28.000000000 +0200 +++ new/Mail-DKIM-1.20220408/lib/Mail/DKIM/PrivateKey.pm 2022-04-08 06:05:06.000000000 +0200 @@ -1,7 +1,7 @@ package Mail::DKIM::PrivateKey; use strict; use warnings; -our $VERSION = '1.20200907'; # VERSION +our $VERSION = '1.20220408'; # VERSION # ABSTRACT: a private key loaded in memory for DKIM signing # Copyright 2005-2007 Messiah College. All rights reserved. @@ -132,7 +132,7 @@ =head1 VERSION -version 1.20200907 +version 1.20220408 =head1 SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Mail-DKIM-1.20200907/lib/Mail/DKIM/PublicKey.pm new/Mail-DKIM-1.20220408/lib/Mail/DKIM/PublicKey.pm --- old/Mail-DKIM-1.20200907/lib/Mail/DKIM/PublicKey.pm 2020-09-07 07:49:28.000000000 +0200 +++ new/Mail-DKIM-1.20220408/lib/Mail/DKIM/PublicKey.pm 2022-04-08 06:05:06.000000000 +0200 @@ -1,7 +1,7 @@ package Mail::DKIM::PublicKey; use strict; use warnings; -our $VERSION = '1.20200907'; # VERSION +our $VERSION = '1.20220408'; # VERSION # ABSTRACT: Represents a DKIM key # Copyright 2005 Messiah College. All rights reserved. @@ -464,7 +464,7 @@ =head1 VERSION -version 1.20200907 +version 1.20220408 =head1 CONSTRUCTOR diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Mail-DKIM-1.20200907/lib/Mail/DKIM/Signature.pm new/Mail-DKIM-1.20220408/lib/Mail/DKIM/Signature.pm --- old/Mail-DKIM-1.20200907/lib/Mail/DKIM/Signature.pm 2020-09-07 07:49:28.000000000 +0200 +++ new/Mail-DKIM-1.20220408/lib/Mail/DKIM/Signature.pm 2022-04-08 06:05:06.000000000 +0200 @@ -1,7 +1,7 @@ package Mail::DKIM::Signature; use strict; use warnings; -our $VERSION = '1.20200907'; # VERSION +our $VERSION = '1.20220408'; # VERSION # ABSTRACT: represents a DKIM-Signature header # Copyright 2005-2007 Messiah College. All rights reserved. @@ -602,7 +602,7 @@ =head1 VERSION -version 1.20200907 +version 1.20220408 =head1 CONSTRUCTORS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Mail-DKIM-1.20200907/lib/Mail/DKIM/Signer.pm new/Mail-DKIM-1.20220408/lib/Mail/DKIM/Signer.pm --- old/Mail-DKIM-1.20200907/lib/Mail/DKIM/Signer.pm 2020-09-07 07:49:28.000000000 +0200 +++ new/Mail-DKIM-1.20220408/lib/Mail/DKIM/Signer.pm 2022-04-08 06:05:06.000000000 +0200 @@ -1,7 +1,7 @@ package Mail::DKIM::Signer; use strict; use warnings; -our $VERSION = '1.20200907'; # VERSION +our $VERSION = '1.20220408'; # VERSION # ABSTRACT: generates a DKIM signature for a message # Copyright 2005-2007 Messiah College. All rights reserved. @@ -149,6 +149,10 @@ $self->{'Timestamp'} ? ( Timestamp => $self->{'Timestamp'} ) : () ), + ( + $self->{'Expiration'} ? ( Expiration => $self->{'Expiration'} ) + : () + ), ) ); } @@ -422,7 +426,7 @@ =head1 VERSION -version 1.20200907 +version 1.20220408 =head1 SYNOPSIS @@ -503,7 +507,7 @@ parameters, but only if the message's sender matches the domain. The following parameters can be passed to this new() method to influence the resulting signature: -Algorithm, Method, Domain, Selector, KeyFile, Identity, Timestamp. +Algorithm, Method, Domain, Selector, KeyFile, Identity, Timestamp, Expiration. If you want different behavior, you can provide a "signer policy" instead. A signer policy is a subroutine or class that determines diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Mail-DKIM-1.20200907/lib/Mail/DKIM/SignerPolicy.pm new/Mail-DKIM-1.20220408/lib/Mail/DKIM/SignerPolicy.pm --- old/Mail-DKIM-1.20200907/lib/Mail/DKIM/SignerPolicy.pm 2020-09-07 07:49:28.000000000 +0200 +++ new/Mail-DKIM-1.20220408/lib/Mail/DKIM/SignerPolicy.pm 2022-04-08 06:05:06.000000000 +0200 @@ -1,7 +1,7 @@ package Mail::DKIM::SignerPolicy; use strict; use warnings; -our $VERSION = '1.20200907'; # VERSION +our $VERSION = '1.20220408'; # VERSION # ABSTRACT: determines signing parameters for a message # Copyright 2005-2006 Messiah College. All rights reserved. @@ -24,7 +24,7 @@ =head1 VERSION -version 1.20200907 +version 1.20220408 =head1 DESCRIPTION diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Mail-DKIM-1.20200907/lib/Mail/DKIM/TextWrap.pm new/Mail-DKIM-1.20220408/lib/Mail/DKIM/TextWrap.pm --- old/Mail-DKIM-1.20200907/lib/Mail/DKIM/TextWrap.pm 2020-09-07 07:49:28.000000000 +0200 +++ new/Mail-DKIM-1.20220408/lib/Mail/DKIM/TextWrap.pm 2022-04-08 06:05:06.000000000 +0200 @@ -1,7 +1,7 @@ package Mail::DKIM::TextWrap; use strict; use warnings; -our $VERSION = '1.20200907'; # VERSION +our $VERSION = '1.20220408'; # VERSION # ABSTRACT: text wrapping module written for use with DKIM use Carp; @@ -176,7 +176,7 @@ =head1 VERSION -version 1.20200907 +version 1.20220408 =head1 DESCRIPTION diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Mail-DKIM-1.20200907/lib/Mail/DKIM/Verifier.pm new/Mail-DKIM-1.20220408/lib/Mail/DKIM/Verifier.pm --- old/Mail-DKIM-1.20200907/lib/Mail/DKIM/Verifier.pm 2020-09-07 07:49:28.000000000 +0200 +++ new/Mail-DKIM-1.20220408/lib/Mail/DKIM/Verifier.pm 2022-04-08 06:05:06.000000000 +0200 @@ -1,7 +1,7 @@ package Mail::DKIM::Verifier; use strict; use warnings; -our $VERSION = '1.20200907'; # VERSION +our $VERSION = '1.20220408'; # VERSION # ABSTRACT: verifies a DKIM-signed message # Copyright 2005-2009 Messiah College. All rights reserved. @@ -493,7 +493,7 @@ =head1 VERSION -version 1.20200907 +version 1.20220408 =head1 SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Mail-DKIM-1.20200907/lib/Mail/DKIM.pm new/Mail-DKIM-1.20220408/lib/Mail/DKIM.pm --- old/Mail-DKIM-1.20200907/lib/Mail/DKIM.pm 2020-09-07 07:49:28.000000000 +0200 +++ new/Mail-DKIM-1.20220408/lib/Mail/DKIM.pm 2022-04-08 06:05:06.000000000 +0200 @@ -1,7 +1,7 @@ package Mail::DKIM; use strict; use warnings; -our $VERSION = '1.20200907'; # VERSION +our $VERSION = '1.20220408'; # VERSION # ABSTRACT: Signs/verifies Internet mail with DKIM/DomainKey signatures #require 5.010; @@ -23,7 +23,7 @@ =head1 VERSION -version 1.20200907 +version 1.20220408 =head1 SYNOPSIS @@ -125,7 +125,7 @@ =head1 CONTRIBUTORS -=for stopwords Aaron Thompson Bron Gondwana Christian Jaeger Damien MASCR?? jasonlong Jose?? Borges Ferreira Martijn van de Streek Martin H. Sluka Mohammad S Anwar +=for stopwords Aaron Thompson Bron Gondwana Christian Jaeger Damien MASCR?? jasonlong Jose?? Borges Ferreira Marc Bradshaw Martijn van de Streek Martin H. Sluka Mohammad S Anwar =over 4 @@ -155,6 +155,10 @@ =item * +Marc Bradshaw <m...@fastmailteam.com> + +=item * + Martijn van de Streek <mart...@vandestreek.net> =item * diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Mail-DKIM-1.20200907/t/FAKE_DNS.dat new/Mail-DKIM-1.20220408/t/FAKE_DNS.dat --- old/Mail-DKIM-1.20200907/t/FAKE_DNS.dat 2020-09-07 07:49:28.000000000 +0200 +++ new/Mail-DKIM-1.20220408/t/FAKE_DNS.dat 2022-04-08 06:05:06.000000000 +0200 @@ -1,5 +1,7 @@ # this file contains DNS records used by verifier.t # + +expirationtest._domainkey.example.org v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC848PMQXuR6V4Tbj3Wb2TN/4Qon0v8ch1WoS0v5wC4/2FXHaH5g7xNwtIwgfE7kxkSqv1LnS4tUrpHjWcXJhtCkT9wkI0FOVFzKHRc7Gy7vYSFMUCnojiVVQjxY6bnyPLIIP2l/D++0awe+XCWQsjFZ+CHW5Lo/lQ/bdrUcYEU/QIDAQAB selector1._domainkey.messiah.edu k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDhMlYqwtUA9UrrDcNp/IMtdFnytggDl5oIAzJ55oWzPILZE7eX4hLdP6WperHm1WJ9M32XsiKrr4TDbWfp4WjGWBnXf8QMi+WlDuEFOvwVRC/uWy+sAiEf3VcBR5KjGvDovPnGSnW8uDntSOY4HlkTJF/BTWnk29zKmlGyGnw9mQIDAQAB test1._domainkey.messiah.edu v=DKIM1; t=y; s=email; p=MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBALgSoqXVSEmfcIsOzw7oRuCCOwsmtX/SJnTWxYyj2leFxfS/AVJ+dYfY+hXqMsT7l+MZvvh/R1WzN4MO/kI/7XsCAwEAAQ== test2._domainkey.messiah.edu v=DKIM1; s=email:web:fine; x1 = extra ; t = y:n:extra; h=md5:sha1; p=MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBALgSoqXVSEmfcIsOzw7oRuCCOwsmtX/SJnTWxYyj2leFxfS/AVJ+dYfY+hXqMsT7l+MZvvh/R1WzN4MO/kI/7XsCAwEAAQ== ; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Mail-DKIM-1.20200907/t/signer_expiration.t new/Mail-DKIM-1.20220408/t/signer_expiration.t --- old/Mail-DKIM-1.20200907/t/signer_expiration.t 1970-01-01 01:00:00.000000000 +0100 +++ new/Mail-DKIM-1.20220408/t/signer_expiration.t 2022-04-08 06:05:06.000000000 +0200 @@ -0,0 +1,147 @@ +#!/usr/bin/perl -I../lib + +use strict; +use warnings; +use Test::Simple tests => 10; +use Test::More; + +use Mail::DKIM::Signer; +use Mail::DKIM::Verifier; + +my $homedir = ( -d "t" ) ? "t" : "."; + +my $tdir = -f "t/test.key" ? "t" : "."; +my $keyfile = "$tdir/test.key"; + +sub generate_signed_email { + my ($timestamp,$expiration) = @_; + + my $dkim = Mail::DKIM::Signer->new( + Algorithm => "rsa-sha256", + Method => "relaxed", + Domain => "example.org", + Selector => "expirationtest", + KeyFile => $keyfile, + Timestamp => $timestamp, + Expiration => $expiration, + ); + ok( $dkim, "new() works" ); + + my $sample_email = <<END_OF_SAMPLE; +From: jason <jason\@example.org> +Subject: hi there +Comment: what is a comment + +this is a sample message +END_OF_SAMPLE + $sample_email =~ s/\n/\015\012/gs; + + $dkim->PRINT($sample_email); + $dkim->CLOSE; + + my $signature = $dkim->signature; + ok( $signature, "signature() works" ); + + print "# signature=" . $signature->as_string . "\n"; + ok( $signature->as_string =~ / t=$timestamp; /, "got expected signature timestamp value" ); + ok( $signature->as_string =~ / x=$expiration; /, "got expected signature expiration value" ); + + my $signed_email = $signature->as_string . "\r\n" . $sample_email; + return $signed_email; +} + +my $timestamp = time; +my $expiration = $timestamp + 3600; +my $signed_email = generate_signed_email($timestamp,$expiration); +my $verifier = Mail::DKIM::Verifier->new(); +$verifier->PRINT($signed_email); +$verifier->CLOSE; +is( $verifier->result, 'pass', 'Signature passes'); + +$timestamp = time-86400; +$expiration = $timestamp + 3600; +$signed_email = generate_signed_email($timestamp,$expiration); +$verifier = Mail::DKIM::Verifier->new(); +$verifier->PRINT($signed_email); +$verifier->CLOSE; +isnt( $verifier->result, 'pass', 'Expired Signature does not pass'); + +# override the DNS implementation, so that these tests do not +# rely on DNS servers I have no control over +my $CACHE; + +sub Mail::DKIM::DNS::fake_query { + my ( $domain, $type ) = @_; + die "can't lookup $type record" if $type ne "TXT"; + + unless ($CACHE) { + open my $fh, "<", "$homedir/FAKE_DNS.dat" + or die "Error: cannot read $homedir/FAKE_DNS.dat: $!\n"; + $CACHE = {}; + while (<$fh>) { + chomp; + next if /^\s*[#;]/ || /^\s*$/; + my ( $k, $v ) = split /\s+/, $_, 2; + $CACHE->{$k} = + ( $v =~ /^~~(.*)~~$/ ) ? "$1" + : $v eq "NXDOMAIN" ? [] + : [ bless \$v, "FakeDNS::Record" ]; + } + close $fh; + } + + if ( not exists $CACHE->{$domain} ) { + warn "did not cache that DNS entry: $domain\n"; + print STDERR ">>>\n"; + my @result = Mail::DKIM::DNS::orig_query( $domain, $type ); + if ( !@result ) { + print STDERR "No results: $@\n"; + } + else { + foreach my $rr (@result) { + + # join with no intervening spaces, RFC 6376 + if ( Net::DNS->VERSION >= 0.69 ) { + + # must call txtdata() in a list context + printf STDERR ( "%s\n", join( "", $rr->txtdata ) ); + } + else { + # char_str_list method is 'historical' + printf STDERR ( "%s\n", join( "", $rr->char_str_list ) ); + } + } + } + print STDERR "<<<\n"; + die; + } + + if ( ref $CACHE->{$domain} ) { + return @{ $CACHE->{$domain} }; + } + else { + die "DNS error: $CACHE->{$domain}\n"; + } +} + +BEGIN { + unless ( $ENV{use_real_dns} ) { + *Mail::DKIM::DNS::orig_query = *Mail::DKIM::DNS::query; + *Mail::DKIM::DNS::query = *Mail::DKIM::DNS::fake_query; + } +} + +package FakeDNS::Record; + +sub type { + return "TXT"; +} + +sub char_str_list { + return ${ $_[0] }; +} + +sub txtdata { + return ${ $_[0] }; +} +