How does Gmail recognize email signatures (alternatively, “What's the best way to recognize email signatures?”)

一曲冷凌霜 提交于 2019-12-04 14:22:03

问题


Gmail automatically greys text that looks like a signature. Anyone have any guesses how it does this? (I've noticed that it depends on the presence of the sender's name, but I think that's only part of the story).

I ask because I'm working on a web application that has an email interface, and I'd like to remove users' signatures before displaying the contents of their emails.


回答1:


Email signatures are supposed to be started with two dashes, a space, and a newline. See Wikipedia and RFC-3676



来源:https://stackoverflow.com/questions/322779/how-does-gmail-recognize-email-signatures-alternatively-whats-the-best-way-t

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!