Patent ID: 7461339

Claim:
A method of inserting scripting language code into an electronic message, said method comprising: receiving said electronic message that is destined for an end user at an end-user device; determining if said electronic message is hostile to said end user by scanning said electronic message and parsing said electronic message; converting the message body of said electronic message into HTML format to form an HTML document having an HTML body and an HTML header so that said electronic message can execute within a browser; inserting URL-request intercepting scripting language code into the HTML body of said HTML document using an insertion module software that copies said electronic message; modifying said electronic message according to a rule base, wherein the electronic message is parsed to determine if the message body contains Java script code and transforming the Java script code into a comment and wherein an action is performed on the Java script code such that if there is an electronic mail “From” header and if a sender domain exists, the sender domain is inserted into the Java script code; and delivering said HTML document to a computing device of said end user, whereby said electronic message is modified to include said scripting language code.