diff --git a/ECtools/spamd/kopano_spamd/__init__.py b/ECtools/spamd/kopano_spamd/__init__.py index 7fb8f422d..308fedb64 100644 --- a/ECtools/spamd/kopano_spamd/__init__.py +++ b/ECtools/spamd/kopano_spamd/__init__.py @@ -82,7 +82,7 @@ def update(self, item, flags): elif (item.folder == item.store.inbox and \ self.learnham and \ - self.was_spam(searchkey)): + (self.was_spam(searchkey) or (header and header.upper() == 'YES'))): fn = os.path.join(self.spamdir, searchkey + '.eml') if os.path.isfile(fn):