From fb0f13c685897d9b89c6569294969dc5d5df40d9 Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Wed, 13 Oct 2010 14:41:05 +0200 Subject: [PATCH] use antispam in iter_unread_messages() too (refs #313) --- weboob/backends/aum/backend.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/weboob/backends/aum/backend.py b/weboob/backends/aum/backend.py index 7be34bd3..03aedef8 100644 --- a/weboob/backends/aum/backend.py +++ b/weboob/backends/aum/backend.py @@ -194,6 +194,9 @@ class AuMBackend(BaseBackend, ICapMessages, ICapMessagesPost, ICapDating, ICapCh for contact in contacts: if not contact.get_id(): continue + if self.antispam and not self.antispam.check(contact): + debug('Skipped a spam-unread-thread from %s' % contact.get_name()) + continue slut = self._get_slut(contact.get_id()) if contact.get_lastmsg_date() > slut['lastmsg']: thread = self.get_thread(contact.get_id(), profiles)