You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def spam(self):
flag = '\Seen'
imap.uid('COPY', self.uid, '[Gmail]/Spam')
self.gmail.imap.uid('STORE', self.uid , '+FLAGS', '(\Deleted)')
if flag not in self.flags: self.flags.append(flag)
email.star()
email.read()
email.unstar()
.. all the other work
except email.spam()
AttributeError: Message instance has no attribute 'spam'
The text was updated successfully, but these errors were encountered: