The Office JavaScript API doesn't provide anything for handling incoming emails. Web add-ins can be triggered only for the selected item in Outlook, they work under the context of currently selected item.
You can post or vote for an existing feature request on Tech Community where they are considered when the Office dev team goes through the planning process.