tools for handling UMS mail API responses