Net::Sieve::Script::Action3pm
Parse and write actions in sieve scripts
Usage
use Net::Sieve::Script::Action;$action = Net::Sieve::Script::Action->new('redirect "[email protected]"');
or
$action = Net::Sieve::Script::Action->new();$action->command('redirect');$action->param('"[email protected]"');
Overview
Action object for Net::Sieve::Script, with command and optional param.
Support RFC 5228, RFC 5230 (vacation), regex draft
Methods
CONSTRUCTOR new
Argument : "command param" string,
parse valid commands from RFCs, param are not validate.
command
read command : "$action->command()"
set command : "$action->command('stop')"
param
read param : "$action->param()"
set param : "$action->param(' :days 3 "I am away this week."')"
equals
return 1 if actions are equals
Releases
9 releases since Debian 5.0 (Lenny); the text changed 3 times.