Constructs a new maildrop recipe.
Maildrop_Recipe
Maildrop_Recipe
([array $params = array()], [array $scriptparams = array()])
-
array
$params: Array of parameters. REQUIRED FIELDS: 'action' OPTIONAL FIELDS: 'action-value' (only used if the 'action' requires it)
-
array
$scriptparams: Array of parameters passed to Ingo_Script_maildrop::.
Adds a condition to the recipe.
void
addCondition
([optonal $condition = array()])
-
optonal
$condition: array $condition Array of parameters. Required keys are 'field' and 'value'. 'case' is an optional keys.
Adds a flag to the recipe.
void
addFlag
(string $flag)
-
string
$flag: String of flags to append to the current flags.
Generates maildrop code to represent the recipe.
string
generate
()
Returns a maildrop-ready mailbox path, converting IMAP folder pathname conventions as necessary.
string
maildropPath
(string $folder)
-
string
$folder: The IMAP folder name.