Select multiple messages in gmail and retrieve message ids