- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2014 12:17 AM
Hi,
Is there any way to omit the outlook automated footer?
For our requirement, email body text will be placed in work-notes. In that work notes automated outlook footer also updated. can we omit the following line using inbound actions?
"This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient(s), please reply to the sender and destroy all copies of the original message. "
Please help on this.
Thanks,
Faizeal.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2014 12:44 AM
How about:
var footerText = "This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient(s), please reply to the sender and destroy all copies of the original message.";
var emailBody = email.body_text.replace(footerText, '');
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2014 12:24 AM
Hi Mohamed,
You can use the email.body_text in the inbound email action to get the body of the email in a variable, using indexOf operator you can find where the text is present in the email body and use string function substring to remove this part and then assign it to the worknotes field of the incident.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2014 12:41 AM
hi,
Thanks for your response, I tried the following script is it right?
var idx = email.body_text.indexOf('This e-mail');
idx = email.body_text.length;
if (idx == -1)
{
var cmt = email.body_text.substring(idx+19,idx+230);
current.work_notes = cmt;
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2014 12:44 AM
How about:
var footerText = "This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient(s), please reply to the sender and destroy all copies of the original message.";
var emailBody = email.body_text.replace(footerText, '');
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2014 01:02 AM
Thanks andrew. Working fine as expected
Thanks,
faizeal