Net::S...Action(3pm)
π 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 5228RFC 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> π
π 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.
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
- debian bookworm: libnet-sieve-script-perl 0.09-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libnet-sieve-script-perl 0.09-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libnet-sieve-script-perl 0.09-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libnet-sieve-script-perl 0.09-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libnet-sieve-script-perl 0.09-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms