Update notification service

This commit is contained in:
MacRimi
2026-03-03 20:09:38 +01:00
parent 2bee28a1d8
commit efc2295b8d
2 changed files with 4 additions and 1 deletions

View File

@@ -433,10 +433,13 @@ class EmailChannel(NotificationChannel):
try:
if self.tls_mode == 'ssl':
server = smtplib.SMTP_SSL(self.host, self.port, timeout=self.timeout)
server.ehlo()
else:
server = smtplib.SMTP(self.host, self.port, timeout=self.timeout)
server.ehlo()
if self.tls_mode == 'starttls':
server.starttls()
server.ehlo() # Re-identify after TLS upgrade
if self.username and self.password:
server.login(self.username, self.password)

View File

@@ -1780,7 +1780,7 @@ class PollingCollector:
'security_count': str(len(security_pkgs)),
'pve_count': str(len(pve_pkgs)),
'kernel_count': str(len(kernel_pkgs)),
'important_list': '\n'.join(important_lines) if important_lines else 'none',
'important_list': '\n'.join(f' {l}' for l in important_lines) if important_lines else 'none',
'package_list': ', '.join(important_lines[:6]) if important_lines else '',
}