From b21be90e88df0fd06fe4dfdb11433a75d38b1948 Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Thu, 14 Oct 2010 14:55:41 +0200 Subject: [PATCH] new patterns --- weboob/backends/aum/antispam.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/weboob/backends/aum/antispam.py b/weboob/backends/aum/antispam.py index 6913be39..a6bae274 100644 --- a/weboob/backends/aum/antispam.py +++ b/weboob/backends/aum/antispam.py @@ -37,7 +37,7 @@ class AntiSpam(object): resume = contact.get_resume() # Check if there is an email address in the offer. - if re.match('[\w\d\.-_]+@[\w\d\.]+ vous offre la possibilit', resume): + if re.match('[\w\d\.\-_]+@[\w\d\.]+ vous offre la possibilit', resume): return False if contact.get_name() == 'Ekaterina': return False @@ -55,12 +55,16 @@ class AntiSpam(object): return False if profile.description.find('plan cam sexy') >= 0: return False + if profile.description.find('show sex') >= 0: + return False if profile.description.find('un mec tres chaude') >= 0: return False if profile.description.find('bale chatt') >= 0: return False if profile.description.find('cc moi ') >= 0: return False + if profile.description.find('une fille tres chaud') >= 0: + return False # Her 'Shopping-list' begins with 'hummm' if profile.description.find(':\nhummm') >= 0: return False