Peel and finely dice the onion and garlic. Fry in hot oil. Add strained tomatoes and bring to the boil. Cut ham into strips and add to the sauce. Season with dried herbs, salt and pepper.
Cook the pasta in boiling salted water for about 10 minutes until al dente. Drain and serve with sauce and parmesan.