[Dovecot] WIP: Read env vars for cronjobs from prepared file

This commit is contained in:
andryyy committed 2020-05-04 07:49:30 +02:00
1 parent ffb6dae8c7
commit 9078031255
5 files changed
+12 -4

No files matched your search

@@ -66,7 +66,7 @@ def notify_rcpt(rcpt, msg_count, quarantine_acl):
else:
with open('/templates/quarantine.tpl') as file_:
template = Template(file_.read())
html = template.render(meta=meta_query, counter=msg_count, hostname=socket.gethostname(), quarantine_acl=quarantine_acl)
html = template.render(meta=meta_query, username=rcpt, counter=msg_count, hostname=socket.gethostname(), quarantine_acl=quarantine_acl)
text = html2text.html2text(html)
count = 0
while count < 15: