Skip to content

Commit

Permalink
add analyzer new info and images
Browse files Browse the repository at this point in the history
  • Loading branch information
Davide Arcuri committed Jul 6, 2020
1 parent f36d138 commit cc0dc41
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions analyzers/SpamAssassin/SpamAssassin.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,23 @@
"required": false,
"defaultValue": 20
}
],
"registration_required": false,
"subscription_required": false,
"free_subscription": false,
"service_homepage": "https://spamassassin.apache.org/",
"service_logo": {
"path": "assets/SpamAssassin_logo.png",
"caption": "logo"
},
"screenshots": [
{
"path": "assets/SpamAssassin_long.png",
"caption": "SpamAssassin long report sample"
},
{
"path": "assets/SpamAssassin_short.png",
"caption:": "SpamAssassin mini report sample"
}
]
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion analyzers/SpamAssassin/spamassassin.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def _parse_response(self, response):
if not match:
return None

report_list = [s.strip() for s in body.decode('utf-8').strip().split('\n')]
report_list = [s.strip() for s in body.decode('utf-8', errors="ignore").strip().split('\n')]
linebreak_num = report_list.index([s for s in report_list if "---" in s][0])
tablelists = [s for s in report_list[linebreak_num + 1:]]

Expand Down

0 comments on commit cc0dc41

Please sign in to comment.