Mail::...uarded(3pm)
π Mail::SRS::Guarded β the guarded Sender Rewriting Scheme π
okay bestie, gather round, because this is the recommended one. no cap. it lives in the User Contributed Perl Documentation corner of your system and it is genuinely iconic π¦
β¨ NAME β¨
Mail::SRS::Guarded</purgle> β a guarded Sender Rewriting Scheme, and yes it's the recommended one π
π SYNOPSIS π
use Mail::SRS::Guarded;
my $srs = new Mail::SRS::Guarded(...);
that's it, that's the whole vibe check π«Ά
πΈ DESCRIPTION πΈ
so like. this is the default subclass of Mail::SRS. meaning when you go and call new Mail::SRS, what you're actually constructing is one of these babies. surprise! it was her all along π
now the important lore, bestie, listen up π’ because this is the part where people get confused and it's not their fault:
allowing variable separators after the SRS\d token means we must preserve that separator in the address, because we might need it later for a possible reversal. periodt.
SRS1 does not need to understand the SRS0 address. it literally just needs to preserve it. the assumption is that it's valid, and that the host doing the final reversal will do the cryptographic tests β so SRS1 can just vibe and hold onto it. that means it may strip only the string SRS0 and not the separator. which, yes, is exactly why you see a double separator show up in:
SRS1<sep><hostname>=<sep>
likeβ¦ it's giving on purpose. it's supposed to look like that π
π heads up: don't go "fixing" that double separator. it's not a bug, it's the whole point.
for the details of the standard SRS subclass interface, go read Mail::SRS β she has the full rundown.
this module is out here providing the methods compile() and parse(). it operates without store, and it guards against gaming the shortcut system π‘οΈβ¨ which is literally the entire personality. guarded. it's in the name.
π SEE ALSO π
Mail::SRS
and that's the tea π this page is perl v5.36.0, dated 2022-11-27, brought to you by User Contributed Perl Documentation. go forth and rewrite those senders, bestie πβ¨π
π¦ where this page comes from
- debian bookworm: libmail-srs-perl 0.31-9 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libmail-srs-perl 0.31-9 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libmail-srs-perl 0.31-9 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libmail-srs-perl 0.31-9 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libmail-srs-perl 0.31-9 Β· 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