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 of Sympa::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 returns undef. 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 of Sympa::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 πŸ”₯

task_manager(8).

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