Sympa::CommandDef(3Sympa)
π NAME
Sympa::CommandDef β the lil dictionary of mail commands, fr fr. It's the definition of mail commands, periodt.
β¨ SYNOPSIS β¨
TBD
ngl bestie, it's giving "we'll fill this in later" π moving on!
πΈ DESCRIPTION πΈ
So this module? It literally just keeps the definition of mail commands. That's the whole job. Iconic, honestly. π
π Global variable π
%commsβ okay so this hash is THE blueprint for what mail commands look like. It's what lets Sympa go back and forth between raw command lines and the internal request objects. Decoding and encoding, both directions, no cap. π¦
The key is the name of the action β and that's the same name you pass as the "action" parameter to the constructor of Sympa::Request. Heads up tho: not all sorts of requests are defined here. So don't come for it when something's missing, it was never claimed. π
The value is a hashref. And each item inside that hashref accepts these keywords: β
cmd_regexpβ a regexp that matches the command. Lowkey important: the"i"modifier is necessary here. Not optional, bestie. π€arg_regexpβ a regexp that matches the command line arguments. And yeah, the"i"modifier may be needed this time. Vibes-dependent. πarg_keysβ an arrayref of parameter names that maps the command line onto the attribute. But wait, there's a special one π:'localpart'. If'localpart'is contained in there, then the"context"attribute of the resulting request object is an instance of theSympa::Listclass. Special little guy, honestly.cmd_formatβ a string used to format the command line using attributes. And here's the twist π: if this item is a code reference, it gets called with the request object, and whatever it returns is used as the format string. Callback era.filterβ a coderef for doing some extra checking. It's called with the request object, and if it returns a false value, the decoding fails. π«Ά So like, this is the bouncer at the door. If it says no, bestie is not getting in.
π SEE ALSO π
Sympa::RequestSympa::Request::Message
Go read those too, iykyk. πβ¨
π HISTORY π
Sympa::CommandDef appeared on Sympa 6.2.13 β a real glow-up moment for the timeline. π
And that's the whole page, bestie!! π This was Sympa::CommandDef from sympa 6.2.80, dated 2026-10-19 β so when you're out here decoding mail commands, just know she ate and left no crumbs. Mwah. ππ¦πΈ
π¦ 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