pull/1329/merge
MarcosLenharo 2025-07-10 10:30:14 +02:00 committed by GitHub
commit 391399158b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 1 deletions

View File

@ -935,7 +935,7 @@ class NotifyEmail(NotifyBase):
base = MIMEText(body, 'plain', 'utf-8')
if attach:
mixed = MIMEMultipart("mixed")
mixed = MIMEMultipart("related")
mixed.attach(base)
# Now store our attachments
for no, attachment in enumerate(attach, start=1):
@ -967,6 +967,10 @@ class NotifyEmail(NotifyBase):
Header(filename, 'utf-8')),
)
mixed.attach(app)
app.add_header(
'Content-ID',
'<{}>'.format(Header(filename, 'utf-8')),
)
base = mixed
if pgp: