Mail::...n::Eval(3pm)

✨ Mail::MtPolicyd::Plugin::Eval β€” the vibe πŸ’…

okay bestie, welcome to Mail::MtPolicyd::Plugin::Eval, a lil mtpolicyd plugin that's literally just here to capture the output of plugins 🫢 this is the User Contributed Perl Documentation version, and she's serving version 2.05 ✨


🌸 DESCRIPTION 🌸

so here's the tea, bestie πŸ“ this plugin runs a whole list of plugins you configured, right? but the plot twist is it does not return the action back to mtpolicyd. nope! instead it takes the output of all those plugins and writes it to a variable inside the session. it's giving backstage pass, not main character β€” the work gets done, the result gets stashed, and mtpolicyd is none the wiser πŸ˜ŒπŸ’–


πŸŽ€ PARAMETERS πŸŽ€

  • store_in (required) β€” the name of the key in the session where the result of the eval'ed checks gets stored. no key, no storage, no slay πŸ’…
  • Plugin (required) β€” a list of checks to execute. yes babe, you need this one too, it's literally the whole point πŸ¦‹

🌈 EXAMPLE 🌈

here's how it looks in the wild, bestie β€” copy it exactly, no improvising:

<Plugin eval-spf>
  module = "Eval"
  # store result in spf_action
  store_in="spf_action"
  <Plugin proxy-spf>
    module = "Proxy"
    host = "localhost:10023"
  </Plugin>
</Plugin>

see how the inner <Plugin proxy-spf> does its lil proxy thing with module = "Proxy" and host = "localhost:10023", and the outer <Plugin eval-spf> with module = "Eval" just scoops the whole result into store_in="spf_action"? iconic behaviour honestly πŸ‘‘


πŸ’œ AUTHOR πŸ’œ

Markus Benning <ich@markusbenning.de> β€” the legend, the moment, the whole entire vibe 🫢


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!! πŸŽ€ this was perl v5.38.2, dated 2024-05-26, and it's the Mail::...n::Eval(3pm) manual page β€” go forth and eval responsibly, ily, bye!! πŸ’–βœ¨πŸ¦‹

πŸ“¦ where this page comes from