I am playing around with the GMail API and can now fetch the message body from a returned message resource.
Now I am interested in how I can strip off the signature from that body, e.g. when I only want to return the text of the mail someone wrote, but not the signature many people have automatically attached from google in every mail.
For example:
// The actual message
Dear Sir,
here is an E-Mail for you.
Cheers
// Signature
John Doe
CEO of SuperDuper Inc.
SuperDuperStreet 200
New York City
I have not found anything regarding this in the documentation. Is the signature delivered in its own field or unsplittable attached to the message itself?