Sympa::Task(3Sympa)
okay bestie, gather round β this is the manual page for Sympa::Task, living in section 3 of the sympa man pages, and it's genuinely just a little module that handles Tasks of Sympa. She's small, she's important, and she has lore. Let's get into it. π
β¨ NAME β¨
Sympa::Task β Tasks of Sympa π
πΈ SYNOPSIS πΈ
use Sympa::Task;
$task = Sympa::Task->new($serialized, context => $list,
model => 'remind', label => 'EXEC', date => 1234567890);
$task = Sympa::Task->new(context => $list, model => 'remind');
π¦ DESCRIPTION π¦
π Methods
new β the constructor, the main character
new ( $serialized, context => $that, model => $model, label => $label,
date => $date )
new ( context => $that, model => $model, [ name => $name ], [ label =>
$label ], [ date => $date ] )
Constructor, bestie. Creates a brand-new instance of the Sympa::Task class. β¨
The first style up there is the one the task spool class usually reaches for (peep Sympa::Spool::Task too) β in that case context, model, label and date all get handed over from the metadata, aka the file name. The way that the spool just feeds it the metadata? Obsessed.
Parameters:
$serializedβ the serialized content of the task file sitting in the spool. If you just don't pass it (that's the second style above, the low-effort one), then the appropriate task file gets read, parsed, and used as the serialized content. π«Άcontext => $thatβ the context of the task: either a List (an instance ofSympa::List) or a Site (yep, that's literally'*').model => $modelβ the task model.name => $nameβ the selector of the task. If you omit it, the value of the context object's parameter that corresponds to the task model gets used instead. And if that parameter value wasn't valid? The constructor just returnsundef. oof, but that's the deal β no cap.label => $labelβ the label of the task. Omit it and you get the default label, which in many cases is just the empty string. Very minimalist of her. πdate => $dateβ Unix time. It's the creation date of the label. Omit it and you get the current time. β°
Returns:
A shiny new instance of the Sympa::Task class. π
dup
dup ( )
Copy constructor, bestie. It creates a deep copy of the instance. Not a little "look, it's basically the same object" situation β a deep copy. π
lines
lines ( )
Instance method. Gets you an array of parsed information, one per each line of the serialized content. π
to_string
to_string ( )
Instance method. Gets you the serialized content of the task. β¨
get_id
get_id ( )
Instance method (the original says "Instasnce" but we all knew what she meant, bless π). Gets you the unique identifier of the instance.
π§ Function
get_tasks
get_tasks ( $that, $model )
Function. Gets you all the possible tasks for a particular context. Very generous of her.
Parameters:
$thatβ the context. An instance ofSympa::List, or'*'.$modelβ the task model.
Returns:
An arrayref of possible tasks. π
π Attributes
{date}{model}{title}
TBD. β¨ (yeah, that's the whole entry, we love a mystery)
π₯ SEE ALSO π₯
Sympa::Spool::Task.
β HISTORY β
The Task module showed up back in Sympa 5.2b.1. Then it got renamed to Sympa::Task in Sympa 6.2a.41. πΈ
And then, plot twist, it got rewritten and split into Sympa::Task and Sympa::Spool::Task in Sympa 6.2.37b.2. Character development, honestly. π
And that's the whole page, bestie β this was sympa 6.2.80, dated 2026-10-19, filed under Sympa::Task(3Sympa) in section 3 of the manual. Go forth and schedule your tasks, ily, bye π
β¨π¦
π¦ where this page comes from
- fedora 43: sympa-devel-doc 6.2.80-2.fc43 Β· GPL-2.0-or-later AND (OFL-1.1-RFN AND MIT) AND OFL-1.1-RFN AND MIT and (MIT OR GPL-2.0-only)
- fedora 44: sympa-devel-doc 6.2.80-2.fc44 Β· GPL-2.0-or-later AND (OFL-1.1-RFN AND MIT) AND OFL-1.1-RFN AND MIT and (MIT OR GPL-2.0-only)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms