Mail:...ivirus(3)

πŸ’– Mail::MIMEDefang::Antivirus(3) πŸ’–

okay bestie, pull up a chair, we're reading the Mail::MIMEDefang::Antivirus man page together and honestly? it's giving very important. this is section 3 of the manual, and it's all about the antivirus interface methods for your email filters. let's go 🫢


✨ NAME ✨

Mail::MIMEDefang::Antivirus β€” antivirus interface methods for email filters, no cap πŸ”₯


🌸 DESCRIPTION 🌸

so here's the tea: Mail::MIMEDefang::Antivirus is literally a whole set of methods that you can call from mimedefang-filter to scan the email message with whatever antivirus software you've got installed. that's it, that's the vibe. scan the mail, catch the bad guys πŸ’…


πŸŽ€ METHODS πŸŽ€

  • message_contains_virus β€” the method that scans a message using every single installed virus scanner. all of them. it does not skip. it does not play. ✨
  • entity_contains_virus β€” same energy, different target: this one scans a MIME::Entity part using every installed virus scanner. so if you're looking at one little piece of the message instead of the whole thing, this is your girl πŸ¦‹
  • initialize_virus_scanner_routines β€” the setup method, the backstage pass 🎟️. it sets @VirusScannerMessageRoutines and @VirusScannerEntityRoutines to arrays of virus-scanner routines to call, based on which scanners are actually installed. lowkey the most important one for making the other ones work.
  • run_virus_scanner β€” the method that actually runs a virus scanner, and it collects the output in $VirusScannerMessages. it's the one doing the work while the others get the credit 😭

ngl bestie, if you're writing a filter and you want virus scanning in it, these four methods are the whole entire plot. memorize them. iykyk πŸ’œ

and that's a wrap on Mail::MIMEDefang::Antivirus! this page is version 3.7.1, dated 2026-07-20, and it's part of the Mail::MIMEDefang::Antivirus Documentation era. go forth and filter, queen πŸ‘‘βœ¨

πŸ“¦ where this page comes from