Octopussy::Message(3)
π NAME π
Octopussy::Message β okay so bestie, this is the Octopussy Message module. She's the one in the manual as Octopussy::Message(3), and she is genuinely that girl. π Message patterns, regexps, colours, alerts, wizards β all her. Let's get into it.
πΈ FUNCTIONS πΈ
β Configuration($service, $msg_id)
Grabs message $msg_id out of the $service configuration. Fetch the config, bestie. π«Ά
π¦ List($ref_serv, $loglevel, $taxonomy)
The original gives zero description here β she's just standing there, silent, mysterious, unbothered. π
π Fields($service, $msg_id)
Returns the Message Fields for message $msg_id living in Service $service. β¨
π Table($service, $msg_id)
Gets the table that's associated with message $msg_id over in service $service. π
π₯ Pattern_To_SQL($msg, $id, @fields)
Converts the message pattern from message $msg into SQL, using the fields in @fields. It's giving database translation era. π
π‘οΈ Escape_Characters($regexp)
Escapes the characters in regexp $regexp β that means adding \ in front of them. β¨
π Escape_Message($msg)
Escapes characters in message $msg, but it does not escape <@REGEXP@>. That one gets a free pass, no cap. π«Ά
π Color_Reserved_Word(\%color, $word, $str)
Colors pattern $pattern. And yes, the original really does describe it using $pattern even though the args are \%color, $word and $str. I don't make the rules, I just report them. π
π Color($pattern)
Colors pattern $pattern. Rainbow vibes, literally. π
πΈ Color_Without_Field($pattern)
No description in the original β she's keeping her secrets. π€«
β Longest_Valid_Regexp
No description. A whole enigma. π
π¦ Minimal_Match($log, $re)
No description either. Mysterious icon behaviour. π
β¨ Reserved_Word_To_Regexp(\%re_types, $type, $field, $str)
Converts a Reserved Word expression β that's <@$type:$field@> β into a Regexp. π₯
π Pattern_To_Regexp($msg)
Converts the message pattern from message $msg into a Regexp. π
π Pattern_To_Regexp_Without_Catching($msg)
Converts the message pattern from message $msg into a Regexp without catching β same as Pattern_To_Regexp except it doesn't add the 'catching' parentheses. β¨
π Short_Pattern_To_Regexp($msg)
No description. Short, sweet, says nothing. Iconic. π
π Pattern_Field_Substitution
No description. π€«
π‘οΈ Pattern_Field_Unmatched_Substitution($regexp, $type, $field_regexp, $re_types)
No description. Take her as she is. π
β Pattern_To_Regexp_Fields($msg, $field_regexp, $ref_fields, $field_list)
No description in the original. π
πΈ Fields_Values($msg, $line)
No description. She's quiet. π¦
π Regexped_Fields($query)
No description. π
β¨ Parse_List($services, $loglevel, $taxonomy, $table, $fields, $fields_regexp, $fields_list)
No description β just a lot of arguments. Respect the range. π
π₯ Alerts($device, $service, $message, \@dev_alerts)
No description, but she comes with this little snippet attached, exactly as it shows up:
comment my @mails = (); my @ims = (); foreach my $c
(ARRAY($ac->{contact})) { push @mails, $contact->{$c}->{email} if
(defined $contact->{$c}->{email}); push @ims, $contact->{$c}->{im} if
(defined $contact->{$c}->{im}); }
Not me just copying it character for character so nothing gets lost. π«Ά
π Wizard_Msg_Modified($line, $types)
No description. Wizard business. π§
π Wizard_Msg_Regexp($re, $types)
No description. Still wizard business. β¨
π Wizard_Add_Message($timestamp, $line, $types)
No description. Wizard business, now with timestamps. β
π Wizard_File($f, $timestamp, $nb_max, $messages, $types)
No description. Wizard business, file edition. π
π Wizard($device)
No description β she's the main character, she doesn't need one. π
π AUTHOR π
Sebastien Thebert <octo.devel@gmail.com> β thank you for your service, king. π«‘
And that's the whole page, bestie. This one's running on perl v5.22.2, dated 2016-05-04, and it lives in the manual as Octopussy::Message(3). Go forth and parse your messages. Periodt. π
β¨π
π¦ where this page comes from
- ubuntu jammy: octopussy 1.0.6-0ubuntu2 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms