Overview

Packages

  • Horde
    • Icalendar
      • UnitTests
  • Ingo
    • UnitTests
  • None

Classes

  • Horde_Core_Ui_VarRenderer_Ingo
  • Ingo
  • Ingo_Api
  • Ingo_Exception
  • Ingo_Exception_Pear
  • Ingo_LoginTasks_SystemTask_Upgrade
  • Ingo_Script
  • Ingo_Script_Imap
  • Ingo_Script_Imap_Api
  • Ingo_Script_Imap_Live
  • Ingo_Script_Maildrop
  • Ingo_Script_Maildrop_Comment
  • Ingo_Script_Maildrop_Recipe
  • Ingo_Script_Maildrop_Variable
  • Ingo_Script_Procmail
  • Ingo_Script_Procmail_Comment
  • Ingo_Script_Procmail_Recipe
  • Ingo_Script_Procmail_Variable
  • Ingo_Script_Sieve
  • Ingo_Script_Sieve_Action
  • Ingo_Script_Sieve_Action_Addflag
  • Ingo_Script_Sieve_Action_Discard
  • Ingo_Script_Sieve_Action_Fileinto
  • Ingo_Script_Sieve_Action_Flag
  • Ingo_Script_Sieve_Action_Keep
  • Ingo_Script_Sieve_Action_Notify
  • Ingo_Script_Sieve_Action_Redirect
  • Ingo_Script_Sieve_Action_Reject
  • Ingo_Script_Sieve_Action_Removeflag
  • Ingo_Script_Sieve_Action_Stop
  • Ingo_Script_Sieve_Action_Vacation
  • Ingo_Script_Sieve_Comment
  • Ingo_Script_Sieve_Else
  • Ingo_Script_Sieve_Elsif
  • Ingo_Script_Sieve_If
  • Ingo_Script_Sieve_Test
  • Ingo_Script_Sieve_Test_Address
  • Ingo_Script_Sieve_Test_Allof
  • Ingo_Script_Sieve_Test_Anyof
  • Ingo_Script_Sieve_Test_Body
  • Ingo_Script_Sieve_Test_Exists
  • Ingo_Script_Sieve_Test_False
  • Ingo_Script_Sieve_Test_Header
  • Ingo_Script_Sieve_Test_Not
  • Ingo_Script_Sieve_Test_Relational
  • Ingo_Script_Sieve_Test_Size
  • Ingo_Script_Sieve_Test_True
  • Ingo_Storage
  • Ingo_Storage_Blacklist
  • Ingo_Storage_Filters
  • Ingo_Storage_Filters_Sql
  • Ingo_Storage_Forward
  • Ingo_Storage_Mock
  • Ingo_Storage_Prefs
  • Ingo_Storage_Rule
  • Ingo_Storage_Spam
  • Ingo_Storage_Sql
  • Ingo_Storage_Vacation
  • Ingo_Storage_VacationTest
  • Ingo_Storage_Whitelist
  • Ingo_Test
  • Ingo_Transport
  • Ingo_Transport_Ldap
  • Ingo_Transport_Null
  • Ingo_Transport_Sivtest
  • Ingo_Transport_Timsieved
  • Ingo_Transport_Vfs
  • Overview
  • Package
  • Class
  • Tree

Class Ingo_Script

The Ingo_Script:: class provides a common abstracted interface to the script-generation subclasses.

See the enclosed file LICENSE for license information (ASL). If you did not receive this file, see http://www.horde.org/licenses/apache.

Direct known subclasses

Ingo_Script_Imap, Ingo_Script_Maildrop, Ingo_Script_Procmail, Ingo_Script_Sieve
Package: Ingo
Author: Brent J. Nordquist bjn@horde.org
Located at Script.php
Methods summary
public static Ingo_Script
# factory( string $script, array $params = array() )

Attempts to return a concrete instance based on $script.

Attempts to return a concrete instance based on $script.

Parameters

$script
The type of subclass to return.
$params
<p>Hash containing additional paramters to be passed to the subclass' constructor.</p>

Returns

Ingo_Script
The newly created concrete instance.

Throws

Ingo_Exception
public
# __construct( array $params = array() )

Constructor.

Constructor.

Parameters

$params
A hash containing parameters needed.
public string
# excludeRegexp( )

Returns a regular expression that should catch mails coming from most daemons, mailing list, newsletters, and other bulk.

Returns a regular expression that should catch mails coming from most daemons, mailing list, newsletters, and other bulk.

This is the expression used for procmail's FROM_DAEMON, including all mailinglist headers.

Returns

string
A regular expression.
public array
# availableActions( )

Returns the available actions for this driver.

Returns the available actions for this driver.

Returns

array
The list of available actions.
public array
# availableCategories( )

Returns the available categories for this driver.

Returns the available categories for this driver.

Returns

array
The list of categories.
public array
# availableTests( )

Returns the available tests for this driver.

Returns the available tests for this driver.

Returns

array
The list of tests actions.
public array
# availableTypes( )

Returns the available test types for this driver.

Returns the available test types for this driver.

Returns

array
The list of test types.
public array
# specialTypes( )

Returns any test types that are special for this driver.

Returns any test types that are special for this driver.

Returns

array
The list of special types
public boolean
# caseSensitive( )

Returns if this driver allows case sensitive searches.

Returns if this driver allows case sensitive searches.

Returns

boolean
Does this driver allow case sensitive searches?
public boolean
# imapFlags( )

Returns if this driver allows IMAP flags to be set.

Returns if this driver allows IMAP flags to be set.

Returns

boolean
Does this driver allow IMAP flags to be set?
public boolean
# stopScript( )

Returns if this driver supports the stop-script option.

Returns if this driver supports the stop-script option.

Returns

boolean
Does this driver support the stop-script option?
public string
# toCode( )

Returns a script previously generated with generate().

Returns a script previously generated with generate().

Returns

string
The script.
public boolean
# generateAvailable( )

Can this driver generate a script file?

Can this driver generate a script file?

Returns

boolean
True if generate() is available, false if not.
public string
# generate( )

Generates the script to do the filtering specified in the rules.

Generates the script to do the filtering specified in the rules.

Returns

string
The script.
public array
# additionalScripts( )

Returns any additional scripts that need to be sent to the transport layer.

Returns any additional scripts that need to be sent to the transport layer.

Returns

array

A list of scripts with script names as keys and script code as values.

public boolean
# performAvailable( )

Can this driver perform on demand filtering?

Can this driver perform on demand filtering?

Returns

boolean
True if perform() is available, false if not.
public boolean
# perform( array $params = array() )

Perform the filtering specified in the rules.

Perform the filtering specified in the rules.

Parameters

$params
The parameter array.

Returns

boolean
True if filtering performed, false if not.
public boolean
# canApply( )

Is the apply() function available?

Is the apply() function available?

Returns

boolean
True if apply() is available, false if not.
public boolean
# apply( )

Apply the filters now. This is essentially a wrapper around perform() that allows that function to be called from within Ingo ensuring that all necessary parameters are set.

Apply the filters now. This is essentially a wrapper around perform() that allows that function to be called from within Ingo ensuring that all necessary parameters are set.

Returns

boolean
See perform().
Constants summary
integer FILTER_UNSEEN

Only filter unseen messages.

Only filter unseen messages.

# 1
integer FILTER_SEEN

Only filter seen messages.

Only filter seen messages.

# 2
API documentation generated by ApiGen