Open EmolLi opened 8 years ago
Add this function in message.py
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'