In a large pot place the mangoes, stir in chopped ginger and garlic, sugar, salt, red pepper flakes, cumin seed, cardamom pods and seeds, cinnamon stick and cloves stirring well. Cover the pot and let sit out all night long. In the morning heat the pot over medium heat, cooking and stirring occasionally for about 30 minutes, until the mixture begins to thicken. Stir in the vinegar and peppercorns, cook for one more minute, remove the cloves and cinnamon stick, cool before using.