Preheat oven to 350°F. In a medium bowl, combine flour, baking soda, cinnamon, salt, nutmeg, and allspice; set aside. In a large bowl, combine sugar and melted butter. Let stand for 5 minutes. Beat in egg, tomato soup and vanilla with an electric mixer on medium speed until combined. Beat in as much of the flour mixture as you can. Stir in any remaining flour mixture. Stir in raisins and walnuts.