From 840d7f22b2b7b41c651e018c0af6e5196fd55632 Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Tue, 27 Sep 2011 11:34:08 +0200 Subject: [PATCH] update antispam --- weboob/backends/aum/antispam.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/weboob/backends/aum/antispam.py b/weboob/backends/aum/antispam.py index 94935028..5cd27d7f 100644 --- a/weboob/backends/aum/antispam.py +++ b/weboob/backends/aum/antispam.py @@ -39,10 +39,22 @@ class AntiSpam(object): # The name of profile is in form #123456789 if profile['pseudo'] == '': return False + if profile['about1'].strip() == profile['about2'].strip(): + return False + if profile['about1'].startswith('salut! je te donne mon msn'): + return False + if profile['about2'].startswith('cam to cam'): + return False + if profile['about2'].startswith('je suis une femme tres tres belle et je recherche un homme qui aime le sexe'): + return False + if profile['about2'].endswith('mmmmmmmmmmmmmmmm'): + return False return True def check_mail(self, mail): # Spambot with a long first-message. if mail['message'].find('Je veux que vous m\'ayez ecrit directement sur le mon e-mail') >= 0: return False + if mail['message'].find('ilusa12010@live.fr') >= 0: + return False return True