Removing Auto Signature from Inbound Emails

Derek3
Kilo Expert

Hi,

We are looking to remove the auto signatures from incoming emails (from a certain Inbound Action).     I would like to use a system property to hold the auto signature, so its easy to amend if it changes.   I have the script below, but its not working.   Can anyone see what is wrong and/or point me in the right direction.   Property is our.email.our.autosignature.

Script

//Identify any Footer/Auto Signature standard text to be stripped from email.

var footerText = gs.getProperty(our.email.our.autosignature);

inc.addQuery('number', incNum);

inc.query();

if(inc.next()){

    inc.work_notes = email.body_text.replace(footerText, ' ');

                  inc.state = '9';

    inc.update();

}

Thanks

Derek

1 ACCEPTED SOLUTION

Anurag Tripathi
Mega Patron
Mega Patron

and property can be read like this



gs.getProperty('our.email.our.autosignature');


-Anurag

View solution in original post

6 REPLIES 6

Anurag Tripathi
Mega Patron
Mega Patron

I dont think there is any way to exactly identify the signature of an incoming email.


-Anurag

Anurag Tripathi
Mega Patron
Mega Patron

and property can be read like this



gs.getProperty('our.email.our.autosignature');


-Anurag

Thanks, that is what was missing.   We can identify the auto signature as the email action is only looking at for email from a specific 3rd party.  


got it ...


-Anurag