In a large skillet, heat 1/4 cup of the olive oil until shimmering. Add the onion, garlic, pine nuts, capers, bay leaves, oregano and crushed pepper and cook over high heat, stirring occasionally, until the onion is softened and lightly browned, about 5 minutes. Add the tomatoes, season with salt and cook until the tomatoes are slightly broken down, about 3 minutes. Add the raisins, vinegar and sugar and cook, stirring, until the sauce thickens, about 5 minutes longer. Discard the bay leaves.