Use remote url instead of current directory to choose email.