IQg4ddlZddlZdZGddZdS)NzSubject:c0eZdZdZdZeddZdS)ClEmailz- class for generation email messages cdSN)selfs p/builddir/build/BUILD/imunify360-venv-2.5.0/opt/imunify360/venv/lib/python3.11/site-packages/clcommon/clemail.py__init__zClEmail.__init__s Nctjtj|}tj|}|tj|| d}t|dkr|d tri|ddkr]|d td}|d|d|d|fS)a8 Generates email message using jinja2 template engine :param template_path: path to jinja2 template :param templ_data: Data to fill template using jinja2 :param subject: Email subject to use if it not found in template :return: Cortege (email_subject, email_body) )loader r)jinja2FileSystemLoaderospathdirname Environment get_templatebasenamerendersplitlen startswithSUBJECT_LINE_PREFIXreplacestrippopjoin) template_path templ_datasubject templ_loader templ_envir message_liness r generate_mail_jinja2zClEmail.generate_mail_jinja2s#.rw}/M/MNN ( === #00 G  ] + +  &   %++  }   ! !mA&6&A&ABU&V&V ![hij[koq[q[q#A&../BBGGMMOOG   a   a  -0000r r)__name__ __module__ __qualname____doc__r staticmethodr)rr r rrsM   111\111r r)rrrrrr r r/sS ! 1 1 1 1 1 1 1 1 1 1r