Move email import functions to extras repo