Chop onions finely. Put tomatoes, onions + sugar in a preserving pan, cover with vinegar. Boil 3/4 hour then mix powders + flour together with a little water and add to pan and boil a few minutes longer.