index: improve error message when file does not seem to be an email