Skip to content

Commit

Permalink
fix: bumped 2022 in copyright notices to 2024
Browse files Browse the repository at this point in the history
  • Loading branch information
andris9 committed Jan 26, 2024
1 parent 1c30cab commit cc89823
Show file tree
Hide file tree
Showing 12 changed files with 25 additions and 28 deletions.
9 changes: 3 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,18 @@

## [4.6.2](https://github.com/postalsys/mailauth/compare/v4.6.1...v4.6.2) (2024-01-25)


### Bug Fixes

* **bimi:** skip bimi with oversized DKIM signatures ([d666d74](https://github.com/postalsys/mailauth/commit/d666d7476cbcae8b3161c78a7e737559ad112fd9))
- **bimi:** skip bimi with undersized DKIM signatures ([d666d74](https://github.com/postalsys/mailauth/commit/d666d7476cbcae8b3161c78a7e737559ad112fd9))

## [4.6.1](https://github.com/postalsys/mailauth/compare/v4.6.0...v4.6.1) (2024-01-24)


### Bug Fixes

* **dkim-verify:** Show the length of the source body in DKIM results ([d28663b](https://github.com/postalsys/mailauth/commit/d28663b30b0bfaf07d395e9d3eaea044c9085657))
- **dkim-verify:** Show the length of the source body in DKIM results ([d28663b](https://github.com/postalsys/mailauth/commit/d28663b30b0bfaf07d395e9d3eaea044c9085657))

## [4.6.0](https://github.com/postalsys/mailauth/compare/v4.5.2...v4.6.0) (2023-11-02)


### Features

* **deploy:** Set up automatic publishing ([f9b9c32](https://github.com/postalsys/mailauth/commit/f9b9c325e4dbac060114aa12c5887ea8c92c0bf8))
- **deploy:** Set up automatic publishing ([f9b9c32](https://github.com/postalsys/mailauth/commit/f9b9c325e4dbac060114aa12c5887ea8c92c0bf8))
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2020-2022 Postal Systems OÜ
Copyright (c) 2020-2024 Postal Systems OÜ

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,6 @@ const { authenticate } = require('mailauth');
## License
© 2020-2022 Postal Systems OÜ
© 2020-2024 Postal Systems OÜ
Licensed under MIT license
4 changes: 2 additions & 2 deletions lib/bimi/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ const lookup = async data => {
return response;
}

if (dmarc.alignment?.dkim?.overSized) {
if (dmarc.alignment?.dkim?.underSized) {
response.status.result = 'skipped';
response.status.comment = 'Oversized DKIM signature';
response.status.comment = 'undersized DKIM signature';
response.info = formatAuthHeaderRow('bimi', response.status);
return response;
}
Expand Down
2 changes: 1 addition & 1 deletion lib/dkim/dkim-verifier.js
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ class DkimVerifier extends MessageParser {
result.canonBodyLengthLimited = true;
result.canonBodyLengthLimit = signatureHeader.maxBodyLength;
if (result.canonBodyLengthTotal > result.canonBodyLength) {
status.overSized = result.canonBodyLengthTotal - result.canonBodyLength;
status.underSized = result.canonBodyLengthTotal - result.canonBodyLength;
}
} else {
result.canonBodyLengthLimited = false;
Expand Down
2 changes: 1 addition & 1 deletion lib/dmarc/verify.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ const verifyDmarc = async opts => {

alignment: {
spf: { result: spfAlignment?.domain, strict: dmarcRecord.aspf === 's' },
dkim: { result: dkimAlignment?.domain, strict: dmarcRecord.adkim === 's', overSized: dkimAlignment?.overSized }
dkim: { result: dkimAlignment?.domain, strict: dmarcRecord.adkim === 's', underSized: dkimAlignment?.underSized }
}
});
};
Expand Down
2 changes: 1 addition & 1 deletion lib/mailauth.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ const authenticate = async (input, opts) => {
id: r.id,
domain: r.signingDomain,
aligned: r.status.aligned,
overSized: r.status.overSized
underSized: r.status.underSized
})),
arcResult,
resolver: opts.resolver
Expand Down
6 changes: 3 additions & 3 deletions lib/tools.js
Original file line number Diff line number Diff line change
Expand Up @@ -398,8 +398,8 @@ const formatAuthHeaderRow = (method, status) => {

parts.push(`${method}=${status.result || 'none'}`);

if (status.overSized) {
parts.push(`(${escapeCommentValue(`oversized signature ${status.overSized}B`)})`);
if (status.underSized) {
parts.push(`(${escapeCommentValue(`undersized signature: ${status.underSized}`)})`);
}

if (status.comment) {
Expand Down Expand Up @@ -455,7 +455,7 @@ const getAlignment = (fromDomain, domainList, strict) => {
}
return entry;
})
.sort((a, b) => (a.overSized || 0) - (b.overSized || 0));
.sort((a, b) => (a.underSized || 0) - (b.underSized || 0));

if (strict) {
fromDomain = formatDomain(fromDomain);
Expand Down
2 changes: 1 addition & 1 deletion man/man.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ Please report any bugs to https://github.com/postalsys/mailauth/issues.

## LICENSE

Copyright (c) 2020-2022, Postal Systems (MIT).
Copyright (c) 2020-2024, Postal Systems (MIT).

## SEE ALSO

Expand Down
16 changes: 8 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"marked-man": "0.7.0",
"mbox-reader": "1.1.5",
"mocha": "10.2.0",
"npm-check-updates": "16.14.12",
"npm-check-updates": "16.14.13",
"pkg": "5.8.1"
},
"dependencies": {
Expand Down
4 changes: 2 additions & 2 deletions test/bimi-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ describe('BIMI Tests', () => {
expect(res?.location).to.equal('https://cldup.com/a6t0ORNG2z.svg');
});

it('Should fail BIMI location with oversized DKIM', async () => {
it('Should fail BIMI location with undersized DKIM', async () => {
let res = await bimi({
dmarc: {
status: {
Expand All @@ -284,7 +284,7 @@ describe('BIMI Tests', () => {
policy: 'reject',
alignment: {
spf: { result: false, strict: false },
dkim: { result: 'gmail.com', strict: false, overSized: 100 }
dkim: { result: 'gmail.com', strict: false, underSized: 100 }
}
},

Expand Down

0 comments on commit cc89823

Please sign in to comment.