Example with Restmail.net

Last updated
http://restmail.net/mail/{{ TEST_USER_ALIAS }}( json, payload ) => {
const parseActivationLink = ( text ) => {
const re = /(http\:[^\"]+4567\/con[^\"]+)/g,
res = text.match( re );
return res ? res[ 0 ].replace( "=\r\n", "" ) : null;
},
sentAt = payload.sentAt,
unseen = json.find( msg => new Date( msg.receivedAt ) > new Date( sentAt ) );
if ( !unseen ) {
return null;
}
return parseActivationLink( unseen.html );
}