Hacker News new | past | comments | ask | show | jobs | submit login

Read the linked article. Email clients wrap the contents of forwarded messages in a <blockquote>, you just have to use CSS rules to hide the contents of a "blockquote yourfooterclasss" while otherwise showing yourfooterclass by default.

EDIT I actually meant "read the article linked from the linked article" — I too spent a good minute there trying to find out their solution.




I read the article, and the only mention of blockquotes was in the CSS / HTML itself. I don't see any mention in the article about how it works.

Still, thanks for the explanation. Does every mail client do this (like, due to an RFC) or just the popular ones?


It varies between mail clients, but they generally put the forwarded part of the message in either a blockquote or a div with a class that can be targeted. It's how the vertical blue line is produced for the quoted portion.




Consider applying for YC's W25 batch! Applications are open till Nov 12.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: