Cpl Daniel James who worked for General David Richards , recently appointed as the head of the British Army , was found guilty of emailing details of troop movements to a military attaché in the Iranian embassy in Kabul .