Hi,
Has anyone ever created a mail filter? I use php to check my mail online. I have decided to create a mail filter, because I get p**sed off with spam. I was wondering if anyone else had done anything simular? I'm guessing its going to be as simple as using imap_open to open the email, like I already do to read messages. But rather than display the messages, scan the subject/body for certain words (stored in a mysql database) such as porn, mortgage, finance etc and delte the message.
I'm thinking of doing this 2 ways, 1. have a button on the page that displays the message, called filter, and 2. try and get it to run automatically, say once an hour. Is it possible to crontab a php script? If I could tell crontab to run mail_filter.php every hour it would be great.
Anyone have any input/ideas for me?
Cheers
Ben