Slice onions finely. Heat some butter in a large saucepan and fry almonds and raisins gently. Transfer from the pan, fry onions in the same butter until tender but not brown. Set aside. Wipe the chicken well and place in a heavy pan with the milk, simmer until cooked. Take chicken out, allow to cool and remove flesh from carcass. Set aside. Now add sugar, salt and chilli powder to the milk and cook rapidly until liquid is reduced to 1 pint (U.S. 2i cups). Remove from heat and allow to cool slightly. Beat egg yolks with cream and add to milk, with pieces of chicken, mix gently but well. Check seasoning. Take a large baking dish and spread half the chicken mixture in the bottom. Sprinkle with half the almonds, raisins and onions. Top with another layer of chicken covered with almonds, raisins and onions. Cover with foil and bake in a moderate oven (350° F. -- Gas Mark 4) for 30 minutes or until set.
Note: Preparation time 20 minutes, Cooking time 1 hour 35 minutes, To serve 6-8