IMP_Spam
in package
Handles spam/innocent reporting within IMP.
Tags
Table of Contents
Constants
Properties
Methods
- __construct() : mixed
- Constructor.
- report() : int
- Reports a list of messages as innocent/spam.
Constants
INNOCENT
public
mixed
INNOCENT
= 1
SPAM
public
mixed
SPAM
= 2
Properties
$_action
Action.
protected
int
$_action
$_drivers
Driver list.
protected
array<string|int, mixed>
$_drivers
Methods
__construct()
Constructor.
public
__construct(int $action[, array<string|int, mixed> $drivers = array() ]) : mixed
Parameters
- $action : int
-
Either IMP_Spam::SPAM or IMP_Spam::INNOCENT.
- $drivers : array<string|int, mixed> = array()
-
List of reporting drivers.
report()
Reports a list of messages as innocent/spam.
public
report(IMP_Indices $indices) : int
Parameters
- $indices : IMP_Indices
-
An indices object.
Return values
int —1 if messages have been deleted, 2 if messages have been moved.