user1867196
user1867196

Reputation: 115

Parsing emails for images in signature section

have a program which checks the unread email from an inbox, parses and sends the content of the email to a record. If there are any images in the email, those images will be sent as attachments to the record. Now if any email is having an image in the signature part of the email, that image is also being sent as an attachment.

Is there a way that I can check for the images in the signature part of the email and ignore them? or Is there a way around where I can skip the entire signature content from getting parsed?

If it is difficult to parse the signature section of emails coming from different email servers, I would like to know if it is possible for emails coming from outlook?.

Upvotes: 2

Views: 1037

Answers (1)

djjeck
djjeck

Reputation: 1840

The signature is incorporated in the message when the message is composed. After the message is sent, there is no way, in general, to tell apart a signature from something that the sender has typed by hand.

But maybe, if the signatures you refer to always have some common format, you can probably detect that particular format, using a regular expression or something like that.

Upvotes: 5

Related Questions