Net::S...Action(3pm)

πŸ“¦
version 0.09 Β· 2 versions
  • 0.09 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 0.09 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– Net::Sieve::Script::Action πŸ’–

okay bestie, welcome to Net::Sieve::Script::Action (that's the 3pm one, Perl docs, you know the vibe) β€” she parses and writes actions in sieve scripts, and she is so good at it. πŸŽ€


✨ NAME ✨

Net::Sieve::Script::Action β€” literally just: parse and write actions in sieve scripts. that's the whole job description, and she ate. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

look at her go:

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

or, if you're feeling extra and want to build it piece by piece:

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

both slay, pick your fighter. ✨


🌸 DESCRIPTION 🌸

so basically? this is the Action object for Net::Sieve::Script. she's got a command and an optional param, and that's her whole personality (affectionate).

she supports:

  • RFC 5228
  • RFC 5230 (vacation, aka the "I'm out of office, do not perceive me" one πŸ–οΈ)
  • regex draft

πŸ‘‘ METHODS πŸ‘‘

🧚 CONSTRUCTOR new

  • Argument β€” a "command param" string

she parses valid commands from the RFCs. heads up though: params are not validate[d]. not a typo, that's just how it is β€” she trusts you. πŸ™ˆ

πŸ’œ command

read command:

"$action->command()"

set command:

"$action->command('stop')"

get it, set it, iconic either way. ⭐

πŸ“ param

read param:

"$action->param()"

set param:

"$action->param(' :days 3 "I am away this week."')"

(keep those quotes exactly like that, bestie, the nesting is real and she means it. 😭)

🌈 equals

returns 1 if actions are equals. that's it. that's the method. short, sweet, correct. 🫢


πŸŽ€ AUTHOR πŸŽ€

Yves Agostini β€” <yvesago@cpan.org> πŸ’–


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.

fr fr, go read the LICENSE file, she included it for a reason. πŸ“œ

and that's the whole page, no cap. this was written against perl v5.34.0 and dated 2022-06-30 β€” bye bestie, go write some sieve actions, you're gonna do amazing πŸ’…βœ¨

πŸ“¦ where this page comes from