page.assignVarRemotely configuration for Mailinator (part 1)
​
However Mailinator unlike Restmail.net doesn't allow to receive last message content with a single request. So we need to take advantage of optional request function command parameter:
So we alternate the default fetch logic of page.assignVarRemotely as follows:
Thus the command will read the listing and find a message with subject containing "Account Validation" string. Then it retrieves and returns the raw body of the matching mail. So the parse function may look like:
1
(text)=>{
2
const re =/(http\:[^\"]+4567\/con[^\"]+)/g,
3
res = text.match( re );
4
return res ? res[0].replace("=\r\n",""):null;
5
}
Copied!
page.assignVarRemotely configuration for Mailinator (part 2)