Cut the mango off the stone. Peel the flesh and dice finely. Cut the apricots into small cubes. Peel and finely dice the onions.
Peel ginger and grate finely. Coarsely crush coriander and pimento grains in a mortar. Wash the chilli and cut lengthwise. Remove the seeds and chop the pod finely
Put mango, apricots, onions, ginger, vinegar, brown sugar, star anise, cardamom, crushed spices, chilli and about 1/2 teaspoon salt in a pot. Bring to the boil and simmer for 20-25 minutes, stirring occasionally. Season to taste with salt. Fill hot into clean glasses with twist-off lids, close tightly and turn upside down for about 5 minutes. Let the chutney cool down, store in a cool and dark place