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

Support downloading rendered multipart/alternative content. #20

Open
tkaemming opened this issue Sep 30, 2015 · 1 comment
Open

Support downloading rendered multipart/alternative content. #20

tkaemming opened this issue Sep 30, 2015 · 1 comment

Comments

@tkaemming
Copy link
Collaborator

Allowing easy download of the rendered preview message (using Content-Disposition: attachment; filename="preview.eml") would make it easier to open up the message in an email client (rather than the browser) for a more representative preview.

@tkaemming
Copy link
Collaborator Author

I've confirmed that this this works on OS X Mail.app, at least — this would work with an intermediate store for the rendered content:

response = HttpResponse(str(message.message()), content_type='multipart/mixed')
response['Content-Disposition'] = 'attachment; filename="preview.eml"'
return response

I'm not sure where that intermediate store would be — in-memory cache?

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

No branches or pull requests

1 participant