|
|
|
File: C:/usr/local/lib/php/blueshoes-4.2/core/net/email/spambuster/Bs_SpamBuster.class.php
BlueShoes Application Framework - net/email/spambuster
Bs_SpamBuster
Bs_Object | +-- Bs_SpamBuster
Treats Spam (unwanted emails).
|
public class Bs_SpamBuster extends Bs_Object
Treats Spam (unwanted emails).
i couldn't find a mailserver or mailclient that offered thefeatures i wanted. so i wrote this class to save me time andhappiness.when a new mail comes in, it's accepted by the mailserver. thenthis class checks if it wants me to read it. if the sender isan approved address, it goes through immediatly. if not, somespam checks are made. they include:- optional blocking of freemail providers(do i need mail from hotmail users? ...)- vocabulary checks ("special limited offer" etc)and if the message fails, it is [re]moved and the sendergets informed about that. spammers won't read my responseanyway. if the system fails and treats a real mail as spam,the sender gets noticed about that and can try it again, orcontact me differently.this avoids the situation "didn't you get my email?".wish list:- option to block html mails- option to block mails with attachements- option to complain with the mailmasterdependencies: Bs_EmailParser, Bs_EmailValidator, Bs_Smtp, Bs_Dir,
| Authors | |
| Since | bs4.1
@status experimental |
| Version | 4.0.$id$ |
| Copyright | blueshoes.org |
|
| |
|
Methods inherited from Bs_Object |
| isex, isexception, tostring, tohtml, persist, unpersist, bs_object, bbsetoutput, bbawake, bbisawake, bbxmsg, bbxfunctionstart, bbxfunctionend, bbxecho, bbxvar, bbxvardump, bbforcetrace, bbbufferstart, bbbufferget, bbbufferendflush, bbbufferendclean |
|
|
|
|
|
Public Field Summary |
| string |
$allowFreemailby default we don't allow freemail providers. |
|
|
|
Public Method Details |
Bs_SpamBuster |
|
public void Bs_SpamBuster( )
|
| |
Constructor
|
| Returns |
void |
|
|
Private Method Details |
checkDirectory |
|
private void checkDirectory( $fullPath )
|
| |
|
| Parameter |
|
|
$fullPath |
|
|
Warning: documentation is missing. |
|
| Returns |
void |
|
_bust |
|
private void _bust( array $emailHash, string $fileFullPath, int $bustReason )
|
| |
|
| Parameter |
|
| array |
$emailHash |
|
|
(email file parsed into hash) |
|
|
| string |
$fileFullPath |
|
|
(full path to email file) |
|
|
| int |
$bustReason |
|
|
(see constants) |
|
| Returns |
void |
|
_getFileList |
|
private array _getFileList( string $fullPath )
|
| |
returns the email files in the given directory.
does not go into subdirs. msg files must have the ending ".msg".
|
| Parameter |
|
|
| Returns |
array (vector filled with fullPaths, may be empty if no files.) |
|
_createReplyText |
|
private void _createReplyText( $bustReason )
|
| |
Warning: documentation is missing.
|
| Parameter |
|
|
$bustReason |
|
|
Warning: documentation is missing. |
|
| Returns |
void |
|
_move |
|
private void _move( $fileFullPath )
|
| |
Warning: documentation is missing.
|
| Parameter |
|
|
$fileFullPath |
|
|
Warning: documentation is missing. |
|
| Returns |
void |
|
_delete |
|
private void _delete( )
|
| |
Warning: documentation is missing.
|
| Returns |
void |
|
|
Public Field Details |
$allowFreemail |
|
public string $allowFreemail
>>FALSE<<
by default we don't allow freemail providers.
|
|
|
|
|
|
|
|
| PHPDoc 1.0beta |