E-mail provider Yahoo has pledged to give the Michigan family of a Marine killed in Iraq full access to their son’s e-mail account, ending a legal tangle that began after his parents sought messages he wrote before his death.

An Oakland County probate judge signed an order Wednesday directing Yahoo Inc. to provide the contents of the e-mail account used by Lance Cpl. Justin M. Ellsworth, 20, who was killed Nov. 13 while inspecting a bomb in Anbar province.