| core_net

# Class: Bs_SpamBuster Source Location: /core/net/email/spambuster/Bs_SpamBuster.class.php
### Class Overview
    Bs_Object
       |
       --Bs_SpamBuster
Treats Spam (unwanted emails). #### Author(s): Andrej Arn <at blueshoes dot org> #### Version: 4.3.$Revision: 1.2 $ $Date: 2003/08/09 15:17:48 $ #### Copyright: blueshoes.org | ### Variables $allowFreemail | ### Methods Bs_SpamBuster checkDirectory _bust _createReplyText _delete _move
### Inherited Variables | ### Inherited Methods #### Class: Bs_Object Bs_Object::Bs_Object() Bs_Object::getErrors() Basic error handling: Get *all* errors as string array from the global Bs_Error-error stack. Bs_Object::getLastError() Basic error handling: Get last error string from the global Bs_Error-error stack. Bs_Object::getLastErrors() Basic error handling: Get last errors string array from the global Bs_Error-error stack sinc last call of getLastErrors(). Bs_Object::persist() Persists this object by serializing it and saving it to a file with unique name. Bs_Object::setError() Basic error handling: Push an error string on the global Bs_Error-error stack. Bs_Object::toHtml() Dumps the content of this object to a string using PHP's var_dump(). Bs_Object::toString() Dumps the content of this object to a string using PHP's var_dump(). Bs_Object::unpersist() Fetches an object that was persisted with persist()
### Class Details [line 59] Treats Spam (unwanted emails). i couldn't find a mailserver or mailclient that offered the features i wanted. so i wrote this class to save me time and happiness. when a new mail comes in, it's accepted by the mailserver. then this class checks if it wants me to read it. if the sender is an approved address, it goes through immediatly. if not, some spam 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 sender gets informed about that. spammers won't read my response anyway. if the system fails and treats a real mail as spam, the sender gets noticed about that and can try it again, or contact 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 mailmaster dependencies: Bs_EmailParser, Bs_EmailValidator, Bs_Smtp, Bs_Dir, #### Tags:
since: | bs4.1
status: | experimental
pattern: | singleton: (pseudostatic)
access: | public
copyright: | blueshoes.org
version: | 4.3.$Revision: 1.2 $ $Date: 2003/08/09 15:17:48 $
author: | Andrej Arn <at blueshoes dot org>
[ Top ] ### Class Variables #### $allowFreemail = FALSE [line 67] by default we don't allow freemail providers. #### Tags:
access: | public
Type: | bool
[ Top ] ### Class Methods ### constructor Bs_SpamBuster [line 74]
`Bs_SpamBuster Bs_SpamBuster( )`
Constructor #### Tags:
access: | public
[ Top ] ### method checkDirectory [line 82]
`void checkDirectory( mixed $fullPath)`
[ Top ] ### method _bust [line 127]
`void _bust( array $emailHash, string $fileFullPath, int $bustReason)`
#### Parameters:
array | $emailHash | (email file parsed into hash)
string | $fileFullPath | (full path to email file)
int | $bustReason | (see constants)
[ Top ] ### method _createReplyText [line 162]
`void _createReplyText( mixed $bustReason)`
[ Top ] ### method _delete [line 240]
`void _delete( )`
[ Top ] ### method _move [line 232]
`void _move( mixed $fileFullPath)`
[ Top ] Documentation generated on Mon, 29 Dec 2003 21:12:47 +0100 by phpDocumentor 1.2.3