gmail icon indicating copy to clipboard operation
gmail copied to clipboard

email.spam() doesn't work???

Open EmolLi opened this issue 9 years ago • 1 comments

email.star() email.read() email.unstar() .. all the other work except email.spam()

AttributeError: Message instance has no attribute 'spam'

EmolLi avatar Oct 23 '16 08:10 EmolLi

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)

adityadhawan22 avatar May 29 '18 18:05 adityadhawan22