Clear MBox class
Today, spams are become a real calamity. And I am exasperated to see my
mailbox filled with spams with publicities for viagra, various medications,
sex or loan propositions.
My mailbox boosts of about 150/160 mails a day. A large part is mails from Korea.
It is difficult for me to have some holidays far from an Internet connection
because most of the time, if these holidays exceeds two weeks, my mailbox is full
and some expected mails may be returned back to the sender for this reason.
This PHP class isn't the absolute solution. But it do what I want. It is MY solution.
If you find some utility in it, maybe you can help me to improve it to run better.
For me, all mails are reputed to be spams. Except :
- only mails from some authorized domains are accepted
- if not, only mails from some authorized mail addresses are accepted
- if not, only mail with a correct "pass code" in their subject are accepted
- all the rest is deleted straight in the mailbox
A script using this class is executed by a webcron service each hour.
So when I fetch my mails I get only the undeleted spam during the last hour
which is acceptable.
The only important thing is to have a "green list" (authorized domain/address)
as exhaustive as possisble.
If you have some idea to make it better you're welcome...
Pierre FAUQUE, email@example.com
NB: See my "pass code" at: http://www.fr-webdev.net/index.php?p=pierre.php