Hi,
I'm trying to create a page that checks the content of emails and deletes them if they can be considered as SPAM like.
So, for now I load the emails with the function imap_body, and if any keyword considered as SPAM like is found inside this email, it's automatically deleted.
But, I'd like to improve this process to delete email with files in attachement. Do you know if the imap functions provided by php allow me to do so ? if so, should I look for the attached files in the body or in the header ?
Thanks in advance