I wonder if it is possible to remove the signature from a email body, when importing that email into excel?
I am trying out the suggested solution from Tony Dallimore from this earlier posted topic, to import email from Outlook into excel.
I wonder if it is possible to remove the signature from a email body, when importing that email into excel?
I am trying out the suggested solution from Tony Dallimore from this earlier posted topic, to import email from Outlook into excel.
Unfortunately, it's nearly impossible unless you can expect some unique text that can signify where the signature begins so you can strip it out. This is possible during compose mode, where any signature is enclosed with the <span style='mso-bookmark:_MailAutoSig'>
block. However, that block is removed when the email is sent and is not present in the received copy.
Eric's suggestion makes any sense only in case HTML based messages.
But users may prefer composing items in plain text. In that case the suggested way of searching bookmarks will fail. You need to know the signature content and search it in the body.
By default you can find the Signatures folder in the following location;
Windows XP
Windows 8, Windows 7 and Windows Vista
[signature_name].htm - This file is used when creating HTML messages.
[signature_name].rtf - This file is used when creating Rich Text messages.
[signature_name].txt - This file is used when creating Plain Text message.
[signature_name]_files - This folder is used in Outlook to store supporting files for your signature such as formatting, images and/or business cards (vcf-files).
So, you can check the folder for a corresponding signature file, read the file content and try to find such text in the message body depending on the BodyFormat used.
The Outlook object model provides three main ways for working with item bodies:
You can read more about all these ways in the Chapter 17: Working with Item Bodies. It us up to you which way is to choose to customize the signature in the message body.