exit(EXIT_FAILURE);
}
- snprintf(top2,sizeof(top2),"%s/top.tmp",dirname);
+ snprintf(top2,sizeof(top2),"%s/email.int_unsort",dirname);
if((fp_top2=fopen(top2,"w"))==NULL) {
debuga(__FILE__,__LINE__,_("Cannot open file \"%s\": %s\n"),top2,strerror(errno));
exit(EXIT_FAILURE);
smartfilter=false;
memset(&globstat,0,sizeof(globstat));
- if (vrfydir(&period, addr, site, us)<0) {
- debuga(__FILE__,__LINE__,_("Cannot create the output directory name containing the period as part of the name\n"));
- exit(EXIT_FAILURE);
+ if (email[0]=='\0') {
+ if (vrfydir(&period, addr, site, us)<0) {
+ debuga(__FILE__,__LINE__,_("Cannot create the output directory name containing the period as part of the name\n"));
+ exit(EXIT_FAILURE);
+ }
+ } else {
+ if (snprintf(outdirname,sizeof(outdirname),"%semailrep",outdir)>=sizeof(outdirname)) {
+ debuga(__FILE__,__LINE__,_("Path too long: "));
+ debuga_more("%semailrep\n",outdir);
+ exit(EXIT_FAILURE);
+ }
+ my_mkdir(outdirname);
}
if(debugz>=LogLevel_Process){