Documentation

Horde_Spam_Program extends Horde_Spam_Base
in package

Spam reporting driver utilizing a local binary.

Tags
author

Michael Slusarz slusarz@horde.org

author

Jan Schneider jan@horde.org

category

Horde

copyright

2013-2017 Horde LLC

license

http://www.horde.org/licenses/lgpl LGPL

Table of Contents

$_binary  : string
Binary location.
__construct()  : mixed
Constructor.
report()  : int
Reports a list of messages as innocent/spam.
setLogger()  : mixed
Sets the log handler.
_report()  : bool
Reports a single spam message.

Properties

$_binary

Binary location.

protected string $_binary

Methods

__construct()

Constructor.

public __construct(string $binary) : mixed
Parameters
$binary : string

Binary location.

Return values
mixed

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 message contents, either as streams or strings.

$action : mixed

Either Horde_Spam::SPAM or Horde_Spam::INNOCENT.

Return values
int

The number of reported messages.

setLogger()

Sets the log handler.

public setLogger(Horde_Log_Logger $logger) : mixed
Parameters
$logger : Horde_Log_Logger

The log handler.

Return values
mixed

_report()

Reports a single spam message.

protected _report(string $message) : bool
Parameters
$message : string

Message content.

Return values
bool

False on error, true on success.

Search results