convert mailin to a console script from a karlserve script