HTML digest emails exclude quotes from topic body if accompanied by text

I am building a new community and many current users consume information by looking at email digests. A lot of topics that I create contain quoted text (mostly forwarded emails from various existing mailing lists) sometimes accompanied by regular text but not always. I recently observed that the digest emails that go out to users do not contain quoted text at all if there is any accompanying text around the block quote. See screenshots below.

I investigated the Preview Digest and notice that the quote is actually included in the text version of digest, but not in the HTML version.

Original topic:

HTML digest:

Text digest:

While a topic with just a quote shows up just fine in the HTML digest:


Something similar is happening to attachments in the posts.

Original topic:

HTML digest:

Text digest:

Seems like a bug.

That’s because we’re only using the first paragraph for the HTML version and using an excerpt for the TEXT version.

2 Likes

Thanks for a quick response.

Two questions:

  1. Why such discrepancy between the two formats?
  2. How does it explain that a quote only post gets into HTML digest but not when there is any text before or after the quote?

Because there’s no 1-to-1 mapping between the raw (ie. text) and the cooked (ie. html) versions of a post and such we have to resort to an approximation. Hence the “using the first paragraph” rule for the HTML version.

We’ll only use the quote if it’s the first paragraph of the post.

1 Like

but that’s not what’s happening in the first example I posted, no? It skips the quote and uses the text after the quote, which is incorrect because for the end user it misses the context of what that text is referring to.

1 Like

Right, after looking precisely at the code, we’re using the first paragraphs or oneboxes or lists for the HTML version.

Quotes are always ignored.

1 Like

I see that it might make sense to ignore quotes that come from a previous post/topic. But not necessarily all quotes like in my use cases above.

Is it possible to distinguish between the two body > aside > blockquote (internal quote with context) vs body > blockquote (regular quote)?

If not, is it possible to override what gets included in the email digest excerpts/posts using some setting such as those in /admin/customize/site_texts? I looked around before creating this topic and couldn’t find anything to achieve this on my own.

1 Like

I agree.

Yeah, that’s possible and done :wink:

5 Likes

This topic was automatically closed after 23 hours. New replies are no longer allowed.