Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Content-ID header for attachments #75

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bmihelac
Copy link

images can be referenced in message body by attachment title:

<img src="cid:IMAGENAME">

images can be referenced in message body by attachment title:

<img src="cid:IMAGENAME">
@@ -140,6 +140,9 @@ def build_attachments(self):
message_attachment.set_payload(fd.read())
encode_base64(message_attachment)
fd.close()
if attachment.title:
message_attachment.add_header('Content-ID',
"<%s>" % attachment.title)
message_attachment.add_header('Content-Disposition', 'attachment',
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also migrate this line into if statement

@suquant
Copy link

suquant commented Jun 5, 2013

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants