From 83b62564c49bf0c546cb4fb6249eb210938727e9 Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Sun, 14 Nov 2010 11:06:45 +0100 Subject: [PATCH] update antispam --- weboob/backends/aum/antispam.py | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/weboob/backends/aum/antispam.py b/weboob/backends/aum/antispam.py index 0f82f770..75887155 100644 --- a/weboob/backends/aum/antispam.py +++ b/weboob/backends/aum/antispam.py @@ -48,7 +48,11 @@ class AntiSpam(object): # The name of profile is in form #123456789 if re.match('^#\d+$', profile.get_name()): return False - if profile.get_name().strip().lower() == 'ajoute moi': + if profile.get_name().strip().lower() in ('ajoute moi', 'a jeute moi', 'ajouter moi'): + return False + if profile.description.find('h o t m a i l') >= 0: + return False + if profile.description.find('l i v e f r') >= 0: return False # This pattern in bad french is in several spambots description. if re.match('.*chercher? un m.c tres ch..d.*', profile.description): @@ -63,12 +67,16 @@ class AntiSpam(object): return False if profile.description.find('show sex') >= 0: return False - if profile.description.find('un mec tres chaude') >= 0: + if profile.description.find('un mec tres chaud') >= 0: return False if profile.description.find('bale chatt') >= 0: return False if profile.description.find('slt tt les mec chaud') >= 0: return False + if profile.description.find('tres choud') >= 0: + return False + if profile.description.find('plan cam') == 0: + return False if profile.description.find('cc moi ') >= 0: return False if profile.description.find('une fille tres chaud') >= 0: @@ -82,7 +90,10 @@ class AntiSpam(object): if profile.description.endswith('Moi la bonne jeune fille gaie'): return False # Her 'Shopping-list' begins with 'hummm' - if profile.description.endswith('Sa shopping-list :\nhummm'): + if profile.description.endswith('Sa shopping-list :\nhummm') or \ + profile.description.endswith('Sa shopping-list :\nhummmm') + return False + if profile.description.strip().endswith('Sa shopping-list :\nEMAIL:'): return False # Part of an email address (camiliasexy1live.fr) if profile.description.find('sexy1live') >= 0: @@ -106,6 +117,8 @@ class AntiSpam(object): # "ajouter moi : alussiahotmail.fr" if re.match('^ajouter moi :\s+\w+\.\w+\n', profile.description): return False + if profile.description.find('ajouter moi Oki') >= 0: + return False return True def check_mail(self, mail):