Chop the onions and fry them briefly in a little olive oil until they are translucent. Add the two cans of tomatoes and season with vegetable stock, pepper and sugar. Chop the olives and add them together with the capers. Simmer over low heat for about an hour.
Cook the spaghetti in plenty of salted water in an open saucepan until it is firm to the bite.
Just before serving, add the basil, oregano and a dash of cream to the sauce.
By the way, the idea with the olives and capers came from my girlfriend.