Record PWD to file, to avoid Terminal incompatibilities
Mail sources: clean up / unify some of the event data