In a kettle cook the onion and the garlic in the oil over moderately low heat, stirring occasionally, until they are softened, add the wine, and boil the mixture for 1 minute. Stir in the tomatoes with the juice, 1 tablespoon of the parsley, the basil, the oregano, the salt, and the red pepper flakes and boil the mixture, stirring occasionally, for 5 minutes, or until it is thickened.