---
name: "Net::Sieve::Script::Action"
section: "3pm"
platform: "linux"
package: "libnet-sieve-script-perl"
version: "0.09-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Net::Sieve::Script::Action"
---

# Net::Sieve::Script::Action(3pm)

parse and write actions in sieve scripts

## 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"');
```

## DESCRIPTION

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

## AUTHOR

Yves Agostini - \<yvesago@cpan.org\>

## COPYRIGHT

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

The full text of the license can be found in the LICENSE file included with this module.
