Update upstream source from tag 'upstream/1.20200907'
Update to upstream version '1.20200907'
with Debian dir 317d334f63a99a2d9f0ad8683c5866aa0e194fd5
gregor herrmann
3 years ago
0 | 0 | This file summarizes what's changed between releases of Mail-DKIM. |
1 | ||
2 | 1.20200907 2020-09-07 UTC | |
3 | * ARC::Signer: Preserve leading fold from AR (if any) when copying to AAR. | |
4 | Thanks to @dev-aaront-org | |
1 | 5 | |
2 | 6 | 1.20200824 2020-08-24 UTC |
3 | 7 | * ARC::Signer: Set cv=none if message contains no ARC headers and no ARC result |
66 | 66 | "web" : "https://github.com/fastmail/mail-dkim/" |
67 | 67 | } |
68 | 68 | }, |
69 | "version" : "1.20200824", | |
69 | "version" : "1.20200907", | |
70 | 70 | "x_contributors" : [ |
71 | 71 | "Aaron Thompson <dev@aaront.org>", |
72 | 72 | "Bron Gondwana <brong@fastmail.fm>", |
35 | 35 | resources: |
36 | 36 | bugtracker: https://github.com/fastmail/mail-dkim/issues |
37 | 37 | repository: git://github.com/fastmail/mail-dkim.git |
38 | version: '1.20200824' | |
38 | version: '1.20200907' | |
39 | 39 | x_contributors: |
40 | 40 | - 'Aaron Thompson <dev@aaront.org>' |
41 | 41 | - 'Bron Gondwana <brong@fastmail.fm>' |
38 | 38 | "YAML::XS" => 0, |
39 | 39 | "lib" => 0 |
40 | 40 | }, |
41 | "VERSION" => "1.20200824", | |
41 | "VERSION" => "1.20200907", | |
42 | 42 | "test" => { |
43 | 43 | "TESTS" => "t/*.t" |
44 | 44 | } |
0 | 0 | This archive contains the distribution Mail-DKIM, |
1 | version 1.20200824: | |
1 | version 1.20200907: | |
2 | 2 | |
3 | 3 | Signs/verifies Internet mail with DKIM/DomainKey signatures |
4 | 4 |
0 | 0 | package Mail::DKIM::ARC::MessageSignature; |
1 | 1 | use strict; |
2 | 2 | use warnings; |
3 | our $VERSION = '1.20200824'; # VERSION | |
3 | our $VERSION = '1.20200907'; # VERSION | |
4 | 4 | # ABSTRACT: Subclass of Mail::DKIM::Signature which represents a ARC-Message-Signature header |
5 | 5 | |
6 | 6 | # Copyright 2017 FastMail Pty Ltd. All Rights Reserved. |
68 | 68 | |
69 | 69 | =head1 VERSION |
70 | 70 | |
71 | version 1.20200824 | |
71 | version 1.20200907 | |
72 | 72 | |
73 | 73 | =head1 CONSTRUCTORS |
74 | 74 |
0 | 0 | package Mail::DKIM::ARC::Seal; |
1 | 1 | use strict; |
2 | 2 | use warnings; |
3 | our $VERSION = '1.20200824'; # VERSION | |
3 | our $VERSION = '1.20200907'; # VERSION | |
4 | 4 | # ABSTRACT: represents a ARC-Seal header |
5 | 5 | |
6 | 6 | # Copyright 2017 FastMail Pty Ltd. All Rights Reserved. |
75 | 75 | |
76 | 76 | =head1 VERSION |
77 | 77 | |
78 | version 1.20200824 | |
78 | version 1.20200907 | |
79 | 79 | |
80 | 80 | =head1 CONSTRUCTORS |
81 | 81 |
0 | 0 | package Mail::DKIM::ARC::Signer; |
1 | 1 | use strict; |
2 | 2 | use warnings; |
3 | our $VERSION = '1.20200824'; # VERSION | |
3 | our $VERSION = '1.20200907'; # VERSION | |
4 | 4 | # ABSTRACT: generates a DKIM signature for a message |
5 | 5 | |
6 | 6 | # Copyright 2017 FastMail Pty Ltd. All Rights Reserved. |
109 | 109 | foreach my $header ( @{ $self->{headers} } ) { |
110 | 110 | $header =~ s/[\r\n]+$//; |
111 | 111 | if ( $header =~ m/^Authentication-Results:/ ) { |
112 | my ( $arval ) = $header =~ m/^Authentication-Results:[^;]*;\s*(.*)/is; | |
112 | my ( $arval ) = $header =~ m/^Authentication-Results:[^;]*;[\t ]*(.*)/is; | |
113 | 113 | my $parsed; |
114 | 114 | eval { |
115 | 115 | $parsed= Mail::AuthenticationResults::Parser->new |
126 | 126 | unless "\L$ardom" eq $self->{SrvId}; # make sure it's our domain |
127 | 127 | |
128 | 128 | $arval =~ s/;?\s*$//; # ignore trailing semicolon and whitespace |
129 | # preserve leading fold if there is one, otherwise set one leading space | |
130 | $arval =~ s/^\s*/ / unless ($arval =~ m/^\015\012/); | |
129 | 131 | if ($ar) { |
130 | $ar .= "; $arval"; | |
132 | $ar .= ";$arval"; | |
131 | 133 | } |
132 | 134 | else { |
133 | $ar = "$ardom; $arval"; | |
135 | $ar = "$ardom;$arval"; | |
134 | 136 | } |
135 | 137 | |
136 | 138 | # get chain value from A-R header |
589 | 591 | |
590 | 592 | =head1 VERSION |
591 | 593 | |
592 | version 1.20200824 | |
594 | version 1.20200907 | |
593 | 595 | |
594 | 596 | =head1 SYNOPSIS |
595 | 597 |
0 | 0 | package Mail::DKIM::ARC::Verifier; |
1 | 1 | use strict; |
2 | 2 | use warnings; |
3 | our $VERSION = '1.20200824'; # VERSION | |
3 | our $VERSION = '1.20200907'; # VERSION | |
4 | 4 | # ABSTRACT: verifies an ARC-Sealed message |
5 | 5 | |
6 | 6 | # Copyright 2017 FastMail Pty Ltd. All Rights Reserved. |
620 | 620 | |
621 | 621 | =head1 VERSION |
622 | 622 | |
623 | version 1.20200824 | |
623 | version 1.20200907 | |
624 | 624 | |
625 | 625 | =head1 SYNOPSIS |
626 | 626 |
0 | 0 | package Mail::DKIM::Algorithm::Base; |
1 | 1 | use strict; |
2 | 2 | use warnings; |
3 | our $VERSION = '1.20200824'; # VERSION | |
3 | our $VERSION = '1.20200907'; # VERSION | |
4 | 4 | # ABSTRACT: base class for DKIM "algorithms" |
5 | 5 | |
6 | 6 | # Copyright 2005-2007 Messiah College. All rights reserved. |
186 | 186 | |
187 | 187 | =head1 VERSION |
188 | 188 | |
189 | version 1.20200824 | |
189 | version 1.20200907 | |
190 | 190 | |
191 | 191 | =head1 SYNOPSIS |
192 | 192 |
0 | 0 | package Mail::DKIM::Algorithm::dk_rsa_sha1; |
1 | 1 | use strict; |
2 | 2 | use warnings; |
3 | our $VERSION = '1.20200824'; # VERSION | |
3 | our $VERSION = '1.20200907'; # VERSION | |
4 | 4 | # ABSTRACT: Base algorithm class |
5 | 5 | |
6 | 6 | # Copyright 2005-2006 Messiah College. All rights reserved. |
133 | 133 | |
134 | 134 | =head1 VERSION |
135 | 135 | |
136 | version 1.20200824 | |
136 | version 1.20200907 | |
137 | 137 | |
138 | 138 | =head1 AUTHORS |
139 | 139 |
0 | 0 | package Mail::DKIM::Algorithm::rsa_sha1; |
1 | 1 | use strict; |
2 | 2 | use warnings; |
3 | our $VERSION = '1.20200824'; # VERSION | |
3 | our $VERSION = '1.20200907'; # VERSION | |
4 | 4 | # ABSTRACT: rsa sha1 algorithm class |
5 | 5 | |
6 | 6 | # Copyright 2005-2006 Messiah College. All rights reserved. |
65 | 65 | |
66 | 66 | =head1 VERSION |
67 | 67 | |
68 | version 1.20200824 | |
68 | version 1.20200907 | |
69 | 69 | |
70 | 70 | =head1 AUTHORS |
71 | 71 |
0 | 0 | package Mail::DKIM::Algorithm::rsa_sha256; |
1 | 1 | use strict; |
2 | 2 | use warnings; |
3 | our $VERSION = '1.20200824'; # VERSION | |
3 | our $VERSION = '1.20200907'; # VERSION | |
4 | 4 | # ABSTRACT: rsa sha256 algorithm class |
5 | 5 | |
6 | 6 | # Copyright 2005-2006 Messiah College. All rights reserved. |
65 | 65 | |
66 | 66 | =head1 VERSION |
67 | 67 | |
68 | version 1.20200824 | |
68 | version 1.20200907 | |
69 | 69 | |
70 | 70 | =head1 AUTHORS |
71 | 71 |
0 | 0 | package Mail::DKIM::AuthorDomainPolicy; |
1 | 1 | use strict; |
2 | 2 | use warnings; |
3 | our $VERSION = '1.20200824'; # VERSION | |
3 | our $VERSION = '1.20200907'; # VERSION | |
4 | 4 | # ABSTRACT: represents an Author Domain Signing Practices (ADSP) record |
5 | 5 | |
6 | 6 | # Copyright 2005-2009 Messiah College. |
194 | 194 | |
195 | 195 | =head1 VERSION |
196 | 196 | |
197 | version 1.20200824 | |
197 | version 1.20200907 | |
198 | 198 | |
199 | 199 | =head1 DESCRIPTION |
200 | 200 |
0 | 0 | package Mail::DKIM::Canonicalization::Base; |
1 | 1 | use strict; |
2 | 2 | use warnings; |
3 | our $VERSION = '1.20200824'; # VERSION | |
3 | our $VERSION = '1.20200907'; # VERSION | |
4 | 4 | # ABSTRACT: base class for canonicalization methods |
5 | 5 | |
6 | 6 | # Copyright 2005-2007 Messiah College. All rights reserved. |
84 | 84 | |
85 | 85 | =head1 VERSION |
86 | 86 | |
87 | version 1.20200824 | |
87 | version 1.20200907 | |
88 | 88 | |
89 | 89 | =head1 SYNOPSIS |
90 | 90 |
0 | 0 | package Mail::DKIM::Canonicalization::DkCommon; |
1 | 1 | use strict; |
2 | 2 | use warnings; |
3 | our $VERSION = '1.20200824'; # VERSION | |
3 | our $VERSION = '1.20200907'; # VERSION | |
4 | 4 | # ABSTRACT: dk common canonicalization |
5 | 5 | |
6 | 6 | # Copyright 2005-2006 Messiah College. All rights reserved. |
149 | 149 | |
150 | 150 | =head1 VERSION |
151 | 151 | |
152 | version 1.20200824 | |
152 | version 1.20200907 | |
153 | 153 | |
154 | 154 | =head1 AUTHORS |
155 | 155 |
0 | 0 | package Mail::DKIM::Canonicalization::DkimCommon; |
1 | 1 | use strict; |
2 | 2 | use warnings; |
3 | our $VERSION = '1.20200824'; # VERSION | |
3 | our $VERSION = '1.20200907'; # VERSION | |
4 | 4 | # ABSTRACT: common canonicalization |
5 | 5 | |
6 | 6 | # Copyright 2005-2007 Messiah College. All rights reserved. |
143 | 143 | |
144 | 144 | =head1 VERSION |
145 | 145 | |
146 | version 1.20200824 | |
146 | version 1.20200907 | |
147 | 147 | |
148 | 148 | =head1 DESCRIPTION |
149 | 149 |
0 | 0 | package Mail::DKIM::Canonicalization::dk_nofws; |
1 | 1 | use strict; |
2 | 2 | use warnings; |
3 | our $VERSION = '1.20200824'; # VERSION | |
3 | our $VERSION = '1.20200907'; # VERSION | |
4 | 4 | # ABSTRACT: nofws canonicalization |
5 | 5 | |
6 | 6 | # Copyright 2005-2006 Messiah College. All rights reserved. |
44 | 44 | |
45 | 45 | =head1 VERSION |
46 | 46 | |
47 | version 1.20200824 | |
47 | version 1.20200907 | |
48 | 48 | |
49 | 49 | =head1 AUTHORS |
50 | 50 |
0 | 0 | package Mail::DKIM::Canonicalization::dk_simple; |
1 | 1 | use strict; |
2 | 2 | use warnings; |
3 | our $VERSION = '1.20200824'; # VERSION | |
3 | our $VERSION = '1.20200907'; # VERSION | |
4 | 4 | # ABSTRACT: dk simple canonicalization |
5 | 5 | |
6 | 6 | # Copyright 2005 Messiah College. All rights reserved. |
74 | 74 | |
75 | 75 | =head1 VERSION |
76 | 76 | |
77 | version 1.20200824 | |
77 | version 1.20200907 | |
78 | 78 | |
79 | 79 | =head1 AUTHORS |
80 | 80 |
0 | 0 | package Mail::DKIM::Canonicalization::nowsp; |
1 | 1 | use strict; |
2 | 2 | use warnings; |
3 | our $VERSION = '1.20200824'; # VERSION | |
3 | our $VERSION = '1.20200907'; # VERSION | |
4 | 4 | # ABSTRACT: nowsp canonicalization |
5 | 5 | |
6 | 6 | # Copyright 2005 Messiah College. All rights reserved. |
56 | 56 | |
57 | 57 | =head1 VERSION |
58 | 58 | |
59 | version 1.20200824 | |
59 | version 1.20200907 | |
60 | 60 | |
61 | 61 | =head1 AUTHORS |
62 | 62 |
0 | 0 | package Mail::DKIM::Canonicalization::relaxed; |
1 | 1 | use strict; |
2 | 2 | use warnings; |
3 | our $VERSION = '1.20200824'; # VERSION | |
3 | our $VERSION = '1.20200907'; # VERSION | |
4 | 4 | # ABSTRACT: common canonicalization |
5 | 5 | |
6 | 6 | # Copyright 2005 Messiah College. All rights reserved. |
122 | 122 | |
123 | 123 | =head1 VERSION |
124 | 124 | |
125 | version 1.20200824 | |
125 | version 1.20200907 | |
126 | 126 | |
127 | 127 | =head1 AUTHORS |
128 | 128 |
0 | 0 | package Mail::DKIM::Canonicalization::seal; |
1 | 1 | use strict; |
2 | 2 | use warnings; |
3 | our $VERSION = '1.20200824'; # VERSION | |
3 | our $VERSION = '1.20200907'; # VERSION | |
4 | 4 | # ABSTRACT: arc seal canonicalization |
5 | 5 | |
6 | 6 | # Copyright 2017 FastMail Pty Ltd. All Rights Reserved. |
115 | 115 | |
116 | 116 | =head1 VERSION |
117 | 117 | |
118 | version 1.20200824 | |
118 | version 1.20200907 | |
119 | 119 | |
120 | 120 | =head1 AUTHORS |
121 | 121 |
0 | 0 | package Mail::DKIM::Canonicalization::simple; |
1 | 1 | use strict; |
2 | 2 | use warnings; |
3 | our $VERSION = '1.20200824'; # VERSION | |
3 | our $VERSION = '1.20200907'; # VERSION | |
4 | 4 | # ABSTRACT: simple canonicalization |
5 | 5 | |
6 | 6 | # Copyright 2005 Messiah College. All rights reserved. |
95 | 95 | |
96 | 96 | =head1 VERSION |
97 | 97 | |
98 | version 1.20200824 | |
98 | version 1.20200907 | |
99 | 99 | |
100 | 100 | =head1 AUTHORS |
101 | 101 |
0 | 0 | package Mail::DKIM::Common; |
1 | 1 | use strict; |
2 | 2 | use warnings; |
3 | our $VERSION = '1.20200824'; # VERSION | |
3 | our $VERSION = '1.20200907'; # VERSION | |
4 | 4 | # ABSTRACT: Common class for Mail::DKIM |
5 | 5 | |
6 | 6 | # Copyright 2005-2007 Messiah College. All rights reserved. |
180 | 180 | |
181 | 181 | =head1 VERSION |
182 | 182 | |
183 | version 1.20200824 | |
183 | version 1.20200907 | |
184 | 184 | |
185 | 185 | =head1 AUTHORS |
186 | 186 |
0 | 0 | package Mail::DKIM::DNS; |
1 | 1 | use strict; |
2 | 2 | use warnings; |
3 | our $VERSION = '1.20200824'; # VERSION | |
3 | our $VERSION = '1.20200907'; # VERSION | |
4 | 4 | # ABSTRACT: performs DNS queries for Mail::DKIM |
5 | 5 | |
6 | 6 | # Copyright 2007, 2012 Messiah College. All rights reserved. |
183 | 183 | |
184 | 184 | =head1 VERSION |
185 | 185 | |
186 | version 1.20200824 | |
186 | version 1.20200907 | |
187 | 187 | |
188 | 188 | =head1 DESCRIPTION |
189 | 189 |
0 | 0 | package Mail::DKIM::DkPolicy; |
1 | 1 | use strict; |
2 | 2 | use warnings; |
3 | our $VERSION = '1.20200824'; # VERSION | |
3 | our $VERSION = '1.20200907'; # VERSION | |
4 | 4 | # ABSTRACT: represents a DomainKeys Sender Signing Policy record |
5 | 5 | |
6 | 6 | # Copyright 2005-2009 Messiah College. |
171 | 171 | |
172 | 172 | =head1 VERSION |
173 | 173 | |
174 | version 1.20200824 | |
174 | version 1.20200907 | |
175 | 175 | |
176 | 176 | =head1 DESCRIPTION |
177 | 177 |
0 | 0 | package Mail::DKIM::DkSignature; |
1 | 1 | use strict; |
2 | 2 | use warnings; |
3 | our $VERSION = '1.20200824'; # VERSION | |
3 | our $VERSION = '1.20200907'; # VERSION | |
4 | 4 | # ABSTRACT: represents a DomainKeys-Signature header |
5 | 5 | |
6 | 6 | # Copyright 2005-2006 Messiah College. All rights reserved. |
251 | 251 | |
252 | 252 | =head1 VERSION |
253 | 253 | |
254 | version 1.20200824 | |
254 | version 1.20200907 | |
255 | 255 | |
256 | 256 | =head1 CONSTRUCTORS |
257 | 257 |
0 | 0 | package Mail::DKIM::DkimPolicy; |
1 | 1 | use strict; |
2 | 2 | use warnings; |
3 | our $VERSION = '1.20200824'; # VERSION | |
3 | our $VERSION = '1.20200907'; # VERSION | |
4 | 4 | # ABSTRACT: represents a DKIM Sender Signing Practices record |
5 | 5 | |
6 | 6 | # Copyright 2005-2007 Messiah College. |
192 | 192 | |
193 | 193 | =head1 VERSION |
194 | 194 | |
195 | version 1.20200824 | |
195 | version 1.20200907 | |
196 | 196 | |
197 | 197 | =head1 DESCRIPTION |
198 | 198 |
1 | 1 | use strict; |
2 | 2 | use warnings; |
3 | 3 | # ABSTRACT: Represents a DKIM Key |
4 | our $VERSION = '1.20200824'; # VERSION | |
4 | our $VERSION = '1.20200907'; # VERSION | |
5 | 5 | |
6 | 6 | # Copyright 2006 Jason Long. All rights reserved. |
7 | 7 | # |
100 | 100 | |
101 | 101 | =head1 VERSION |
102 | 102 | |
103 | version 1.20200824 | |
103 | version 1.20200907 | |
104 | 104 | |
105 | 105 | =head1 AUTHORS |
106 | 106 |
0 | 0 | package Mail::DKIM::KeyValueList; |
1 | 1 | use strict; |
2 | 2 | use warnings; |
3 | our $VERSION = '1.20200824'; # VERSION | |
3 | our $VERSION = '1.20200907'; # VERSION | |
4 | 4 | # ABSTRACT: Represents a Key/Value list |
5 | 5 | |
6 | 6 | # Copyright 2005-2007 Messiah College. All rights reserved. |
194 | 194 | |
195 | 195 | =head1 VERSION |
196 | 196 | |
197 | version 1.20200824 | |
197 | version 1.20200907 | |
198 | 198 | |
199 | 199 | =head1 AUTHORS |
200 | 200 |
0 | 0 | package Mail::DKIM::MessageParser; |
1 | 1 | use strict; |
2 | 2 | use warnings; |
3 | our $VERSION = '1.20200824'; # VERSION | |
3 | our $VERSION = '1.20200907'; # VERSION | |
4 | 4 | # ABSTRACT: Signs/verifies Internet mail with DKIM/DomainKey signatures |
5 | 5 | |
6 | 6 | # Copyright 2005 Messiah College. All rights reserved. |
141 | 141 | |
142 | 142 | =head1 VERSION |
143 | 143 | |
144 | version 1.20200824 | |
144 | version 1.20200907 | |
145 | 145 | |
146 | 146 | =head1 AUTHORS |
147 | 147 |
0 | 0 | package Mail::DKIM::Policy; |
1 | 1 | use strict; |
2 | 2 | use warnings; |
3 | our $VERSION = '1.20200824'; # VERSION | |
3 | our $VERSION = '1.20200907'; # VERSION | |
4 | 4 | # ABSTRACT: abstract base class for originator "signing" policies |
5 | 5 | |
6 | 6 | # Copyright 2005-2007 Messiah College. |
161 | 161 | |
162 | 162 | =head1 VERSION |
163 | 163 | |
164 | version 1.20200824 | |
164 | version 1.20200907 | |
165 | 165 | |
166 | 166 | =head1 SYNOPSIS |
167 | 167 |
0 | 0 | package Mail::DKIM::PrivateKey; |
1 | 1 | use strict; |
2 | 2 | use warnings; |
3 | our $VERSION = '1.20200824'; # VERSION | |
3 | our $VERSION = '1.20200907'; # VERSION | |
4 | 4 | # ABSTRACT: a private key loaded in memory for DKIM signing |
5 | 5 | |
6 | 6 | # Copyright 2005-2007 Messiah College. All rights reserved. |
131 | 131 | |
132 | 132 | =head1 VERSION |
133 | 133 | |
134 | version 1.20200824 | |
134 | version 1.20200907 | |
135 | 135 | |
136 | 136 | =head1 SYNOPSIS |
137 | 137 |
0 | 0 | package Mail::DKIM::PublicKey; |
1 | 1 | use strict; |
2 | 2 | use warnings; |
3 | our $VERSION = '1.20200824'; # VERSION | |
3 | our $VERSION = '1.20200907'; # VERSION | |
4 | 4 | # ABSTRACT: Represents a DKIM key |
5 | 5 | |
6 | 6 | # Copyright 2005 Messiah College. All rights reserved. |
463 | 463 | |
464 | 464 | =head1 VERSION |
465 | 465 | |
466 | version 1.20200824 | |
466 | version 1.20200907 | |
467 | 467 | |
468 | 468 | =head1 CONSTRUCTOR |
469 | 469 |
0 | 0 | package Mail::DKIM::Signature; |
1 | 1 | use strict; |
2 | 2 | use warnings; |
3 | our $VERSION = '1.20200824'; # VERSION | |
3 | our $VERSION = '1.20200907'; # VERSION | |
4 | 4 | # ABSTRACT: represents a DKIM-Signature header |
5 | 5 | |
6 | 6 | # Copyright 2005-2007 Messiah College. All rights reserved. |
601 | 601 | |
602 | 602 | =head1 VERSION |
603 | 603 | |
604 | version 1.20200824 | |
604 | version 1.20200907 | |
605 | 605 | |
606 | 606 | =head1 CONSTRUCTORS |
607 | 607 |
0 | 0 | package Mail::DKIM::Signer; |
1 | 1 | use strict; |
2 | 2 | use warnings; |
3 | our $VERSION = '1.20200824'; # VERSION | |
3 | our $VERSION = '1.20200907'; # VERSION | |
4 | 4 | # ABSTRACT: generates a DKIM signature for a message |
5 | 5 | |
6 | 6 | # Copyright 2005-2007 Messiah College. All rights reserved. |
421 | 421 | |
422 | 422 | =head1 VERSION |
423 | 423 | |
424 | version 1.20200824 | |
424 | version 1.20200907 | |
425 | 425 | |
426 | 426 | =head1 SYNOPSIS |
427 | 427 |
0 | 0 | package Mail::DKIM::SignerPolicy; |
1 | 1 | use strict; |
2 | 2 | use warnings; |
3 | our $VERSION = '1.20200824'; # VERSION | |
3 | our $VERSION = '1.20200907'; # VERSION | |
4 | 4 | # ABSTRACT: determines signing parameters for a message |
5 | 5 | |
6 | 6 | # Copyright 2005-2006 Messiah College. All rights reserved. |
23 | 23 | |
24 | 24 | =head1 VERSION |
25 | 25 | |
26 | version 1.20200824 | |
26 | version 1.20200907 | |
27 | 27 | |
28 | 28 | =head1 DESCRIPTION |
29 | 29 |
0 | 0 | package Mail::DKIM::TextWrap; |
1 | 1 | use strict; |
2 | 2 | use warnings; |
3 | our $VERSION = '1.20200824'; # VERSION | |
3 | our $VERSION = '1.20200907'; # VERSION | |
4 | 4 | # ABSTRACT: text wrapping module written for use with DKIM |
5 | 5 | |
6 | 6 | use Carp; |
175 | 175 | |
176 | 176 | =head1 VERSION |
177 | 177 | |
178 | version 1.20200824 | |
178 | version 1.20200907 | |
179 | 179 | |
180 | 180 | =head1 DESCRIPTION |
181 | 181 |
0 | 0 | package Mail::DKIM::Verifier; |
1 | 1 | use strict; |
2 | 2 | use warnings; |
3 | our $VERSION = '1.20200824'; # VERSION | |
3 | our $VERSION = '1.20200907'; # VERSION | |
4 | 4 | # ABSTRACT: verifies a DKIM-signed message |
5 | 5 | |
6 | 6 | # Copyright 2005-2009 Messiah College. All rights reserved. |
492 | 492 | |
493 | 493 | =head1 VERSION |
494 | 494 | |
495 | version 1.20200824 | |
495 | version 1.20200907 | |
496 | 496 | |
497 | 497 | =head1 SYNOPSIS |
498 | 498 |
0 | 0 | package Mail::DKIM; |
1 | 1 | use strict; |
2 | 2 | use warnings; |
3 | our $VERSION = '1.20200824'; # VERSION | |
3 | our $VERSION = '1.20200907'; # VERSION | |
4 | 4 | # ABSTRACT: Signs/verifies Internet mail with DKIM/DomainKey signatures |
5 | 5 | |
6 | 6 | #require 5.010; |
22 | 22 | |
23 | 23 | =head1 VERSION |
24 | 24 | |
25 | version 1.20200824 | |
25 | version 1.20200907 | |
26 | 26 | |
27 | 27 | =head1 SYNOPSIS |
28 | 28 |
1 | 1 | |
2 | 2 | use strict; |
3 | 3 | use warnings; |
4 | use Test::Simple tests => 9; | |
4 | use Test::Simple tests => 12; | |
5 | 5 | |
6 | 6 | use Mail::DKIM::ARC::Signer; |
7 | 7 | |
81 | 81 | $arc->CLOSE; |
82 | 82 | |
83 | 83 | ok($arc->result() eq 'sealed', 'result() is sealed'); |
84 | my ($as) = $arc->as_strings(); | |
84 | my ($as, $ams, $aar) = $arc->as_strings(); | |
85 | 85 | ok($as =~ m/\bcv=none\b/, 'AS has cv=none'); |
86 | ok($aar =~ m/\Q example.org; none\E/, 'AAR has AR contents'); | |
86 | 87 | |
87 | 88 | ## Chain ar, AR header pass |
88 | 89 | |
89 | 90 | $sample_email = <<END_OF_SAMPLE; |
90 | Authentication-Results: example.org; dkim=none (no signatures); arc=pass (something or other) | |
91 | Authentication-Results: example.org; dkim=none (no signatures); arc=pass (something or other) | |
91 | 92 | From: jason <jason\@example.org> |
92 | 93 | Subject: hi there |
93 | 94 | Comment: what is a comment |
108 | 109 | $arc->CLOSE; |
109 | 110 | |
110 | 111 | ok($arc->result() eq 'sealed', 'result() is sealed'); |
111 | ($as) = $arc->as_strings(); | |
112 | ($as, $ams, $aar) = $arc->as_strings(); | |
112 | 113 | ok($as =~ m/\bcv=pass\b/, 'AS has cv=pass'); |
114 | ok($aar =~ m/\Q example.org; dkim=none (no signatures); arc=pass (something or other)\E/, | |
115 | 'AAR has AR contents and expected formatting'); | |
113 | 116 | |
114 | 117 | ## Chain ar, AR header fail |
115 | 118 | |
116 | 119 | $sample_email = <<END_OF_SAMPLE; |
117 | Authentication-Results: example.org; | |
120 | Authentication-Results: example.org; | |
118 | 121 | arc=fail (bad something); |
119 | 122 | spf=pass smtp.mailfrom="jason\@example.net"; |
120 | 123 | From: jason <jason\@example.org> |
137 | 140 | $arc->CLOSE; |
138 | 141 | |
139 | 142 | ok($arc->result() eq 'sealed', 'result() is sealed'); |
140 | ($as) = $arc->as_strings(); | |
143 | ($as, $ams, $aar) = $arc->as_strings(); | |
141 | 144 | ok($as =~ m/\bcv=fail\b/, 'AS has cv=fail'); |
145 | ok($aar =~ m/\Q example.org;\E\015\012\Q arc=fail (bad something);\E\015\012\Q spf=pass smtp.mailfrom=\E/, | |
146 | 'AAR has AR contents and expected formatting'); |