I am developing an email client using PHP. I have got a problem with mark my emails as spam because php library imap
doesn't support mark as spam when I mark the emails as a spam. The only things I can see which it can set the emails as flagged which is not a good thing. When I send the spam emails to my server after I set the emails as flagged, I will still get the spam emails in my inbox.
However, I did a quick research and it said that I would need to use spamassassin to set up the rules. I have got spamassassin installed on my server, but I have got no idea how to use it.
Do you know how I could mark my emails as spam using PHP API to set up the rules on spamassassin?
When I set up the rules on spamassassin to mark my emails as spam, will my emails go straight to spam next time when I send the emails?
Thank you.