Apts: adding scripts to parse emails