Skip to content

Commit

Permalink
Addresses issue #24
Browse files Browse the repository at this point in the history
  • Loading branch information
itemir committed Jan 15, 2016
1 parent 57827d7 commit 93bfe19
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion chrome/content/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@

const DB_NAME = 'thundersec.sqlite';
const API_URL = 'https://www.ilkertemir.com/thundersec/api/v1/';
const VERSION = '2.0';
const VERSION = '2.0.1';
// Send generic stats every two hours
const STAT_INTERVAL = 2*60*60*1000;
4 changes: 2 additions & 2 deletions chrome/content/thundersec.js
Original file line number Diff line number Diff line change
Expand Up @@ -1170,7 +1170,7 @@ function pluginMain() {
// SURBL START
// Extract hostnames from URLs in e-mail body
let body = aMimeMsg.prettyString(true, undefined, true);
let urlMatch = body.match(/(www\.[^\/\s'"\(\)<>]+)/g);
let urlMatch = body.match(/(www\.[a-zA-Z0-9\.\-_]+)/g);
if (urlMatch) {
for (let i in urlMatch) {
// Eliminate http://, https:// and www.
Expand All @@ -1181,7 +1181,7 @@ function pluginMain() {
}
}
}
urlMatch = body.match(/https?:\/\/([^\/\s'"\(\)<>]+)/g);
urlMatch = body.match(/https?:\/\/([a-zA-Z0-9\.\-_]+)/g);
if (urlMatch) {
for (let i in urlMatch) {
// Eliminate http://, https:// and www.
Expand Down
2 changes: 1 addition & 1 deletion install.rdf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<Description about="urn:mozilla:install-manifest">
<em:type>2</em:type> <!-- 2 : Extension -->
<em:id>thundersec@community</em:id>
<em:version>2.0</em:version>
<em:version>2.0.1</em:version>
<em:name>ThunderSec</em:name>
<em:description>Provides security features for Mozilla Thunderbird. These include DNSBL and RBL support, DKIM and SPF failure verifications. DNSBL support can be used to leverage Spamhaus, Abuse.ch and other DNSBL/RBL databases, including custom ones.</em:description>
<em:iconURL>chrome://thundersec/content/images/thundersec.png</em:iconURL>
Expand Down

0 comments on commit 93bfe19

Please sign in to comment.