I want to extract a URL from an inbound email message and then http:get() the URL. How can I access the message body?
select when mail received from "(.*)@example.com" setting user
pre { /* extract first URL from message */ }
http:get(URL);
So what goes in the PRE block, given the following email message:
From: Example User <user@example.com>
To: x202 Endpoint <a101x202@kynetxapps.net>
Subject: An interesting URL
http://www.example.net