You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kibble.apache.org by hu...@apache.org on 2017/10/23 17:09:16 UTC
[kibble-scanners] branch master updated: less confusion if we don't
print the ignored emails
This is an automated email from the ASF dual-hosted git repository.
humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kibble-scanners.git
The following commit(s) were added to refs/heads/master by this push:
new 3eb150e less confusion if we don't print the ignored emails
3eb150e is described below
commit 3eb150e451c8c497cc73a998dbd82534eda63e4a
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Mon Oct 23 19:09:08 2017 +0200
less confusion if we don't print the ignored emails
let's only print debug data WHEN we find an email to analyse
---
src/plugins/scanners/ponymail-tone.py | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/plugins/scanners/ponymail-tone.py b/src/plugins/scanners/ponymail-tone.py
index e3c96c1..f83409c 100644
--- a/src/plugins/scanners/ponymail-tone.py
+++ b/src/plugins/scanners/ponymail-tone.py
@@ -90,12 +90,12 @@ def scan(KibbleBit, source):
for hit in res['hits']['hits']:
eml = hit['_source']
- emlurl = "%s/api/email.lua?id=%s" % (rootURL, eml['id'])
- KibbleBit.pprint("Fetching %s" % emlurl)
- rv = requests.get(emlurl).json()
- body = rv['body']
- KibbleBit.pprint("analyzing email")
if 'mood' not in eml and not re.search(ROBITS, eml['sender']):
+ emlurl = "%s/api/email.lua?id=%s" % (rootURL, eml['id'])
+ KibbleBit.pprint("Fetching %s" % emlurl)
+ rv = requests.get(emlurl).json()
+ body = rv['body']
+ KibbleBit.pprint("analyzing email")
mood = plugins.utils.tone.getTone(KibbleBit, body)
eml['mood'] = mood
hm = [0,'unknown']
--
To stop receiving notification emails like this one, please contact
['"commits@kibble.apache.org" <co...@kibble.apache.org>'].