Hello, I have an application where a mail server receives emails from multiple servers. My application will be parsing those unread emails and will post the message part of the email to a report. While parsing the email, my code is reading the signature part of the email as well into the report. I don't want the signature part to be included. So Is there a way where I can strip the signature part of the email from writing to the report?. Any help is appreciated. Thanks in advance....
There's no standard for how a signature is added to a message.
What you're stuck with is a bunch of heuristics that try to catch the
common cases. For example, a line containing only "---" within
10 lines of the end of the message text might be considered as
the start of a signature.