In a large bowl, mix together sauerkraut, onion, celery, green bell pepper, carrot, pimientos, and mustard seed. Set aside this mixture. In a small saucepan, mix together sugar, oil, and vinegar. Bring to a boil. Remove from heat. Pour sugar mixture over salad, cover, and leave it in the refregerator for 2 days before serving.