Property | Type | Description | |
---|---|---|---|
$_action | |||
$_conditions | |||
$_disable | |||
$_flags | |||
$_params | |||
$_valid |
Method | Description | |
---|---|---|
__construct ( array $params = [], array $scriptparams = [] ) | Constructs a new procmail recipe. | |
addCondition ( array $condition = [] ) | Adds a condition to the recipe. | |
addFlag ( string $flag ) | Adds a flag to the recipe. | |
generate ( ) : string | Generates procmail code to represent the recipe. | |
procmailPath ( string $folder ) : string | Returns a procmail-ready mailbox path, converting IMAP folder pathname conventions as necessary. |
public __construct ( array $params = [], array $scriptparams = [] ) | ||
$params | array | Array of parameters. REQUIRED FIELDS: 'action' OPTIONAL FIELDS: 'action-value' (only used if the 'action' requires it) 'disable' |
$scriptparams | array | Array of parameters passed to Ingo_Script_Procmail. |
public addCondition ( array $condition = [] ) | ||
$condition | array | Array of parameters. Required keys are 'field' and 'value'. 'case' is an optional key. |
public procmailPath ( string $folder ) : string | ||
$folder | string | The IMAP folder name. |
return | string | The procmail mailbox path. |