Skip to content

Commit

Permalink
fixed problem with old Thunderbird versions and sign rules
Browse files Browse the repository at this point in the history
  • Loading branch information
lieser committed Sep 26, 2016
1 parent 9682c22 commit dc7069f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
1.6.1 [2016-09-26]
------------------
- fixed problem with old Thunderbird versions and sign rules

1.6.0 [2016-09-25]
------------------
- added option to indicate successful DNSSEC validation with a lock (enabled by default)
Expand Down
2 changes: 1 addition & 1 deletion install.rdf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<Description about="urn:mozilla:install-manifest">
<em:id>dkim_verifier@pl</em:id>
<em:type>2</em:type> <!-- Extensions -->
<em:version>1.6.0</em:version>
<em:version>1.6.1</em:version>

<em:name>DKIM Verifier</em:name>
<em:description>Verifies the DKIM-Signature of an e-mail.</em:description>
Expand Down
9 changes: 7 additions & 2 deletions modules/AuthVerifier.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* Authentication Verifier.
*
* Version: 1.3.0 (25 September 2016)
* Version: 1.3.1 (26 September 2016)
*
* Copyright (c) 2014-2016 Philippe Lieser
*
Expand Down Expand Up @@ -623,7 +623,12 @@ function isOutgoing(msgHdr) {
GetIdentitiesForServer(msgHdr.folder.server);
}
for (let identity in fixIterator(identities, Ci.nsIMsgIdentity)) {
if (author.includes(identity.email)) {
if (author.includes) {
if (author.includes(identity.email)) {
return true;
}
} else if (author.search(identity.email) !== -1){
// for older versions of Thunderbird
return true;
}
}
Expand Down

0 comments on commit dc7069f

Please sign in to comment.