Skip to content

Commit

Permalink
fixed error if msg has no dkim signature
Browse files Browse the repository at this point in the history
  • Loading branch information
lieser committed Sep 11, 2014
1 parent 10a8701 commit 1481da1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions modules/dkimVerifier.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -1110,8 +1110,12 @@ var Verifier = (function() {
// contains the result of all DKIM-Signatures which have been verified
let sigResults = [];

log.debug(msg.headerFields.get("dkim-signature").length +
" DKIM-Signatures found.");
if (msg.headerFields.get("dkim-signature")) {
log.debug(msg.headerFields.get("dkim-signature").length +
" DKIM-Signatures found.");
} else {
throw new Task.Result(sigResults);
}

// RFC6376 - 3.5. The DKIM-Signature Header Field
// "The DKIM-Signature header field SHOULD be treated as though it were a
Expand Down

0 comments on commit 1481da1

Please sign in to comment.