Google Apps Script to generate message digest from a query of gmail messages