logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Net::Sieve::Script::Action - parse and write actions in sieve scripts

Author

       Yves Agostini - <yvesago@cpan.org>

Description

       Action object for Net::Sieve::Script, with command and optional param.

       Support RFC 5228, RFC 5230 (vacation), regex draft

Methods

CONSTRUCTORnew
        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

Name

       Net::Sieve::Script::Action - parse and write actions in sieve scripts

Synopsis

         use Net::Sieve::Script::Action;
         $action = Net::Sieve::Script::Action->new('redirect "bart@example.edu"');

       or

         $action = Net::Sieve::Script::Action->new();
         $action->command('redirect');
         $action->param('"bart@example.edu"');

See Also