Ignore public folders, fixed error message in logs
This commit is contained in:
parent
1ab70fbf1e
commit
5903684dda
@ -49,6 +49,7 @@ class Checker(object):
|
||||
if item.message_class == 'IPM.Note':
|
||||
spamstatus = item.header(self.spamheader)
|
||||
if spamstatus is not None:
|
||||
if item.store.user: # skip public stores
|
||||
if item.folder == item.store.user.junk and not spamstatus.lower().startswith('yes'):
|
||||
self.learn(item)
|
||||
if item.folder == item.store.user.inbox and spamstatus.lower().startswith('yes'):
|
||||
|
Loading…
Reference in New Issue
Block a user