Select multiple messages in gmail and retrieve ids