pull/1329/merge
MarcosLenharo 2025-07-31 19:19:15 +00:00 committed by GitHub
commit 67be4f6bf2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 1 deletions

View File

@ -1070,7 +1070,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):
@ -1109,6 +1109,10 @@ class NotifyEmail(NotifyBase):
),
)
mixed.attach(app)
app.add_header(
'Content-ID',
'<{}>'.format(Header(filename, 'utf-8')),
)
base = mixed
if pgp: