Wash, clean and slice the tomatoes. Peel and finely dice onions and garlic. Drain olives and cut into rings. Wash oregano and parsley, shake dry and chop finely.
Mix tomatoes, onions, garlic, olives, herbs and capers. Season with salt and pepper. Pour oil over it and let it soak for 24 hours.
Cook the pasta in boiling salted water according to the instructions on the packet. Mix the spaghetti with the uncooked tomato sauce. Arrange in a bowl and sprinkle with grated parmesan.