blackhole.utils
¶Provides utility functionality.
Fully qualified domain name for HELO and EHLO.
mailname_file (str) – A path to the mailname file. Default: /etc/mailname
.
A domain name.
Note
Prefers content of mailname_file, falls back on socket.getfqdn
if mailname_file does not exist or cannot be opened for reading.
Return a string suitable for RFC 2822 compliant Message-ID.
Extract the __version__ from a file without importing it.
The version that was extracted.
AssertionError – When a version cannot be determined.
An instance of Formatter used with blackhole_config.
The output message including formatting like bold and underline.