To make tomato catsup (or ketchup), boil fully ripe tomatoes in their juice until fairly thick. Pass through fine cheesecloth and add salt to taste. Add cloves, pepper, nutmeg and/or other herbs and spices to taste.
see Wikipedia Cookbook