Mail::...::Utils(3)
π NAME π
Mail::MIMEDefang::Utils β bestie, these are the support methods that do the behind-the-scenes heavy lifting. They get called internally, and your email filters can call them too. π«Ά
β¨ DESCRIPTION β¨
Mail::MIMEDefang::Utils is literally a whole little squad of methods. You can call them from mimedefang-filter, or they can be called by other methods. Either way, they're here, they're iconic, and they're doing the work. π
π METHODS π
time_strβ returns a string that represents the current time. That's it, that's the whole vibe. β°hour_strβ returns a string representing the current hour. Just the hour, main character energy only. πsynthesize_received_headerβ synthesizes a validReceived:header to reflect re-mailing. This one is needed by Apache SpamAssassin so it can correctly parse email messages. No cap, SpamAssassin needs it. π¨copy_or_linkβ copies a file if it fails to create a hard link to the original file. Plan A flops, plan B slays. πread_resultsβ extracts an array of command, key, values from theRESULTSfile. Needed for regression tests. π§ͺre_matchβ returns1if eitherContent-Disposition.filenameorContent-Type.namematches the regexp; returns0otherwise. πre_match_extβ returns1if the EXTENSION part of eitherContent-Disposition.filenameorContent-Type.namematches the regexp; returns0otherwise. Only the extension part, bestie. πΈre_match_in_rar_directoryβ returns1if the EXTENSION part of any file in the rar archive matches the regexp. To enable the check,$Features{'unrar'}should be enabled. ποΈre_match_in_7zip_directoryβ returns1if the EXTENSION part of any file in the 7zip archive matches the regexp. To enable the check,$Features{'7zip'}should be enabled. ποΈre_match_in_tgz_directoryβ returns1if the EXTENSION part of any file in the tgz archive matches the regexp. Files with extensions.tar.gz,.tar.bz2and.tbzare also checked. To enable the check,$Features{'tar'}should be enabled. ποΈre_match_in_zip_directoryβ returns1if the EXTENSION part of any file in the zip archive matches the regexp. ποΈmd_copy_orig_msg_to_work_dir_as_mbox_fileβ copies the originalINPUTMSGfile into the work directory for virus-scanning, as a valid mbox file. π¦gen_mx_idβ generates a random identifier that MIMEDefang uses to create temporary files. π²
okay that's the whole page, you ate that π This lovely little doc is from Mail::MIMEDefang::Utils documentation, version 3.7.1, dated 2026-07-20. Periodt. β¨ππ¦
π¦ where this page comes from
- fedora 43: mimedefang 3.7.1-1.fc43 Β· GPL-2.0-only AND GPL-2.0-or-later
- fedora 44: mimedefang 3.7.1-1.fc44 Β· GPL-2.0-only AND GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms