I bought some ham from the deli the other day and forgot it in the car for about 5 hours. It was a 77 degree day. When I ran out to go get it the meat still felt cool so I threw it in the refrigerator right away. Is it still safe to eat?
Deli ham left in warm car
ham
Related Solutions
Since it's already fully-cooked, you don't need to be all that precise with time or temperature. The most important thing is to avoid drying it out, so use a roasting pan and add a little water to the bottom (not more than 1 cm) and cover it while it's reheating.
It's best if you have a meat thermometer; toss it in at 300° F / 150° C (or up to 350° F / 175° C if you're in a hurry) and aim for a temperature of about 140° F / 60° C. If you don't have a thermometer, this about.com page suggests 16-20 minutes per pound; it also suggests heating to 135° F which is also fine. But if you're not going by a thermometer then you'd better make sure that it's completely thawed first, all the way to the interior, lest you end up with a semi-frozen dinner.
If you also plan to glaze it then apply the glaze after it's been heated and raise the temperature to 400° F (205° C) as the above link suggests.
It's probably even safe to eat without cooking again; the refrigerator is likely only about 10 degrees colder, and that generally translates to accelerating rates of spoilage (mostly growth of pathogens) by a factor of 3-5 or so. For example. at 10C (50F), E. coli only manages to divide once every 8 hours or so (see Ratkowsky et al., "Relationship Between Temperature and Growth Rate of Bacterial Cultures", J. Bacteriology, vol 169, p. 1 (1982) for a not-very-clear example of growth curves--I've seen these curves online, but unfortunately I tried and failed to find an easily accessible one this time).
It's almost certainly safe to eat with cooking (fully, to at least ~160 at the center), which would kill anything that managed to grow on the ham. The only thing to worry about with well-cooked food is whether bacteria or fungi have managed to produce so many toxic chemicals that the food will make you ill--and in this case, it's been too cold. (At those temperatures, not only is growth slow, but most anything is slow, including production of anything toxic.)
So I'd say--cook away, enjoy, and don't worry about it.
P.S. I have in practice eaten ham left out at warmer temperatures for longer.
Edit: In response to a comment about bacterial toxin production, I want to reiterate that colder temperatures slow down metabolism of just about everything, including toxin production. This is because, at a basic physical level, reaction rates are governed by the Arrhenius equation which translates, for simple reactions, to a doubling of reaction rates for ~10C increase in temperature. Of course, organisms like bacteria have more complex interactions, but this still gives an order of magnitude estimate. Furthermore, research has been done on production of bacterial toxins. For example, Skinner & Larkin (J. Food Protection vol 61 p. 1154 (1998)) wrote a paper called "Conservative Prediction of Time to Clostridium botulinum Toxin Formation for Use with Time-Temperature Indicators To Ensure the Safety of Foods", which gives, for food innoculated with the bacteria, a time-to-detection-of-toxin of 2-3 days at 10C. In fact, they did the research because food storage at open-face refigerators in stores often allows products to get up to as high as 10C (at least as of 1998).
Similarly, in Bonventre and Kempe ("Physiology of Toxin Production by Clostridium botulinum Types A and B, III"), their 10-18C toxin line is flat for 24 hours at the baseline level before creeping up by a factor of 3 or so between 24 and 48 hours (figure 4).
These are just examples, but you find the same general trends everywhere because of the fundamental physical relationship between reaction rates and temperature.
Best Answer
This is really an issue of risk.
The USDA's recommendation is not to consume meat that has experienced more than four hours of cumulative time between 40° and 140° F. Essentially, that means that the level of risk of illness from food-borne pathogens is acceptable in that range. The government's position is that 5 hours beyond a level of risk that they are willing to expose the public to.
Also be aware that (sliced) deli meat is more prone to pathogens that a whole ham.
That said, it comes down to what level of risk you are comfortable with. Personally, I would probably eat it myself, but not serve it to others.