mailinfo: move global "FILE *fin, *fout" to struct mailinfo