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
Single-part digest? #194
Comments
I completely agree, and this is either a duplicate of #173, or at least closely related. I've started looking at that one a couple of times, but never quite got up the energy to work on it properly, so if you do make this change, I'd like to know. |
Sorry about the delay in answering. (It came in when I had appendicitis (no kidding), then it got buried.) It's a messy issue. I suppose we can add an option like "digest-one-part" and keep the old format as default. But given how few mail user agents can display multipart/digest message/rfc822, I'm really more inclined to just switch to a single-part digest format as the only option. It'll break compatibility with digest-post-process though. The code change to support both formats is a little complicated, but doable (obviously). I think mostly feed._end_digest() will be more complicated. I would like some feedback on this from maintainers before going forward. Thanks! |
I am afraid it won't help anyone here but just in case: I wrote an Awk script that flattens r2e's multipart/digest: https://gist.github.com/xrat/d8b92e32e22af0cf8e05c1e7538cd2f5 |
OK ok. I shouldn't keep putting off something that should only take a couple hours to do. |
Would it be possible to translate that awk code to python in a post-processing script? |
@auouymous My Python skills are sadly not yet sufficient. |
This is my version. There's a bonus postproc function for adding feed name to the subject (for nondigest messages). But this is only a stopgap. We should do it right in the first place.
|
See pull request #221. |
This is the cheap and nasty version alluded to in my original comment. Also, there's no option to get the original format. It is, however, simple (and in fact shorter than the code it replaces). |
Just to be clear, this is what the output looks like. It's a little weird that the parts have full message headers that are ignored. As @kriswilk says above, the original format is more proper, but on the other hand it's also basically useless.
|
Pull request merged. Happy ending for all? |
Not all e-mail clients (ahem, mail user agents) display the multipart digest format in a usable way, for example k-9 on android and gmail just show the parts as downloadable attachments.
It would be nice to have an optional digest format as a single (html or plaintext) body. It can basically look like the concatenation of the digest parts with some separator. Alternatively (the cheap and nasty version), we can just make the message multipart/mixed wrapped around text/html, instead of multipart/digest around message/rfc822 around text/html.
What do y'all think?
Since I want this feature, I'll be happy to write the code, obvs.
The text was updated successfully, but these errors were encountered: