Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 984
Tom Lehman Avatar asked Nov 27 '08 02:11

Tom Lehman


1 Answers

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

like image 170
Paul Tomblin Avatar answered Nov 15 '22 07:11

Paul Tomblin