function performMailActionWithMessages(messages) {
  messages.forEach( function(message) {  // if you want to iterate
  })
};

Games

Tools