Skip to content

Commit

Permalink
remove pgp check
Browse files Browse the repository at this point in the history
  • Loading branch information
Metachaser24 committed Mar 27, 2024
1 parent 8521e6f commit 7d928c8
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions packages/helpers/src/dkim/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,6 @@ export async function verifyDKIMSignature(
tryRevertARCChanges: boolean = true
): Promise<DKIMVerificationResult> {

const emailStr = email.toString();

const pgpMarkers = [
"BEGIN PGP MESSAGE",
"BEGIN PGP SIGNED MESSAGE",
"X-Pm-Content-Encryption: end-to-end",
];

const isPGPEncoded = pgpMarkers.some(marker => emailStr.includes(marker));

if (isPGPEncoded) {
throw new Error("PGP encoded emails are not supported.");
}
let dkimResult = await tryVerifyDKIM(email, domain);

if (dkimResult.status.result !== "pass" && tryRevertARCChanges) {
Expand Down

0 comments on commit 7d928c8

Please sign in to comment.