Huy's Notes
Programmatically mark email as spam using IMAP

Programmatically mark email as spam using IMAP

#mail

Source: StackOverflow - Does moving a mail to the IMAP spam folder trains Gmail's spam filter?

To mark email as spam using IMAP, just move that email to [Gmail]/Spam folder. This is equivalent to click on Report Spam button in Gmail web client.

Moving an email from [Gmail]/Spam to [Gmail]/Trash will remove the report spam effect.

Referred in


If you think this note resonated, be it positive or negative, please feel free to send me an email and we can talk.