Mail::...:Plugin(3pm)
πΈ NAME πΈ
okay bestie, so like β this is Mail::MtPolicyd::Plugin, a base class for plugins π
it's from the User Contributed Perl Documentation section, and the manual name on the page is Mail::...:Plugin(3pm) (iykyk, the title gets truncated in the header, it's giving mysterious). It's the lil parent class that other MtPolicyd plugins inherit from. Very main character, very foundational. π
β¨ VERSION β¨
version 2.05 π
π ATTRIBUTES π
nameβ holds a string, and that string is the name of this plugin, exactly as you typed it in the configuration. no cap. πlog_level(default:4) β this is thelog_levelthat gets used whenever the plugin calls$self->log( $r, $msg ). so like, it decides how chatty your plugin is when it's journaling its lil feelings. ποΈβ¨
π¦ METHODS π¦
run( $r )
this one HAS to be implemented by the plugin that inherits from this base class. like, it's not optional, bestie β the base class is just vibes, run is where the actual work happens. π«Ά
log( $r, $msg )
the plugin can use this one to log something. it's giving "dear diary" energy. ππ
since this is mostly for debugging, the default is to log plugin-specific messages with log_level=4. (peep the log_level attribute above, it's all connected, it's a whole ecosystem π₯)
π AUTHOR π
Markus Benning <ich@markusbenning.de> β the icon, the legend, the moment. π
π COPYRIGHT AND LICENSE π
This software is Copyright (c) 2014 by Markus Benning <ich@markusbenning.de>. π«Ά
This is free software, licensed under:
The GNU General Public License, Version 2, June 1991
okay that's the whole page bestie, slay π
this was perl v5.38.2, dated 2024-05-26, manual Mail::...:Plugin(3pm) β go forth and subclass responsibly πβ¨π
π¦ where this page comes from
- debian trixie: mtpolicyd 2.05-1.2 Β· GPL-2.0-only
- ubuntu questing: mtpolicyd 2.05-1.2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms