Strip the herb needles and leaves from the stems and chop finely. Finely chop the garlic, fry in oil and simmer gently with the chopped tomatoes and herbs. Add some freshly ground pepper from the mill.
Cut the ham and rocket into the desired pieces.
Cook the pasta in plenty of salted water according to the instructions and then pour it off.
Fry the pine nuts in a pan without oil. Then put some olive oil in the pan and add the pasta. Fold in the ham pieces. Beat the egg, stir and pour over the pasta. Mix everything gently. As soon as the egg is set, transfer the contents of the pan onto a warm plate, add the tomato sauce, garnish with rocket and sprinkle with parmesan.