$Fi d Z ddlZddlZddlZddlZddlmZmZ ddlm Z ddl mZ ddlm Z ddlmZmZmZ ddlmZ d d lmZ d dlmZ d dlmZmZ d ZdedefdZ G d d ZdS )z8 This module contains SSA Mailer class and helper tools N)ConfigParserSectionProxy)EmailMessagegethostname)is_cl_solo_edition)EnvironmentFileSystemLoaderselect_autoescapeget_ip_addr )mail_template_location)SSAMailerError) duration_castformat_datec $ t | pdS )NUNKNOWNr )hostnames J/opt/cloudlinux/venv/lib64/python3.11/site-packages/ssa/internal/mailer.py_get_server_ipr s x -I- report_datareturnc t t t ddt ddg }t |j d<