IMP_Spam_Program
in package
implements
IMP_Spam_Base
Spam reporting driver utilizing a local binary.
Tags
Table of Contents
Interfaces
- IMP_Spam_Base
- Spam reporting driver base interface.
Properties
- $_binary : string
- Binary location.
Methods
- __construct() : mixed
- Constructor.
- report() : int
- Reports a list of messages as innocent/spam.
- _report() : bool
- Report a single spam message.
Properties
$_binary
Binary location.
protected
string
$_binary
Methods
__construct()
Constructor.
public
__construct(string $binary) : mixed
Parameters
- $binary : string
-
Binary location.
report()
Reports a list of messages as innocent/spam.
public
report(array<string|int, mixed> $msgs, mixed $action) : int
Parameters
- $msgs : array<string|int, mixed>
-
List of IMP_Contents objects.
- $action : mixed
-
Either IMP_Spam::SPAM or IMP_Spam::INNOCENT.
Return values
int —True on success.
_report()
Report a single spam message.
protected
_report(IMP_Contents $contents) : bool
Parameters
- $contents : IMP_Contents
-
Contents object.
Return values
bool —False on error, true on success.