Documentation

IMP_Spam_Email
in package
implements IMP_Spam_Base

Spam reporting driver via e-mail.

Tags
author

Michael Slusarz slusarz@horde.org

category

Horde

copyright

2013-2017 Horde LLC

license

http://www.horde.org/licenses/gpl GPL

Table of Contents

Interfaces

IMP_Spam_Base
Spam reporting driver base interface.

Properties

$_email  : string
Reporting e-mail.
$_format  : string
E-mail format.
$_opts  : array<string|int, mixed>
Additional options.

Methods

__construct()  : mixed
Constructor.
report()  : int
Reports a list of messages as innocent/spam.

Properties

$_email

Reporting e-mail.

protected string $_email

$_format

E-mail format.

protected string $_format

$_opts

Additional options.

protected array<string|int, mixed> $_opts

Methods

__construct()

Constructor.

public __construct(string $email, string $format[, array<string|int, mixed> $opts = array() ]) : mixed
Parameters
$email : string

Reporting e-mail.

$format : string

E-mail format.

$opts : array<string|int, mixed> = array()

Additional options:

  • digest_limit_msgs: (integer) Maximum number of messages allowed in a digest.
  • digest_limit_size: (integer) Maximum size of a digest.

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.


        
On this page

Search results