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:04:58 UTC
[kibble-scanners] 04/04: ignore robits
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
commit 25856e36d69aab3acd3670df76be7713bac516e7
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Mon Oct 23 19:04:31 2017 +0200
ignore robits
---
src/plugins/scanners/ponymail-tone.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/plugins/scanners/ponymail-tone.py b/src/plugins/scanners/ponymail-tone.py
index d42e505..e3c96c1 100644
--- a/src/plugins/scanners/ponymail-tone.py
+++ b/src/plugins/scanners/ponymail-tone.py
@@ -95,7 +95,7 @@ def scan(KibbleBit, source):
rv = requests.get(emlurl).json()
body = rv['body']
KibbleBit.pprint("analyzing email")
- if 'mood' not in eml:
+ if 'mood' not in eml and not re.search(ROBITS, eml['sender']):
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>.