Cook the pasta al dente according to the instructions.
Fry the onion and garlic in olive oil until translucent. Meanwhile, cut the tomatoes into cubes and finely chop the basil. Puree the tomatoes, basil, quark, milk, onion and garlic together. Season to taste with salt and pepper.