mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-25 07:20:11 +01:00
improved the esmtp parser
This commit is contained in:
parent
19784163be
commit
5a356f0148
@ -391,14 +391,13 @@ AFTER_PERIOD:
|
|||||||
state = SMTP_STATE_FINISHED;
|
state = SMTP_STATE_FINISHED;
|
||||||
|
|
||||||
snprintf(buf, MAXBUFSIZE-1, SMTP_RESP_221_GOODBYE, cfg->hostid);
|
snprintf(buf, MAXBUFSIZE-1, SMTP_RESP_221_GOODBYE, cfg->hostid);
|
||||||
send(new_sd, buf, strlen(buf), 0);
|
strncat(resp, buf, MAXBUFSIZE-1);
|
||||||
if(cfg->verbosity >= _LOG_DEBUG) syslog(LOG_PRIORITY, "%s: sent: %s", sdata.ttmpfile, buf);
|
|
||||||
|
|
||||||
unlink(sdata.ttmpfile);
|
unlink(sdata.ttmpfile);
|
||||||
unlink(sdata.tmpframe);
|
unlink(sdata.tmpframe);
|
||||||
if(cfg->verbosity >= _LOG_DEBUG) syslog(LOG_PRIORITY, "%s: removed", sdata.ttmpfile);
|
if(cfg->verbosity >= _LOG_DEBUG) syslog(LOG_PRIORITY, "%s: removed", sdata.ttmpfile);
|
||||||
|
|
||||||
goto QUITTING;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -438,6 +437,10 @@ AFTER_PERIOD:
|
|||||||
memset(resp, 0, MAXBUFSIZE);
|
memset(resp, 0, MAXBUFSIZE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(state == SMTP_STATE_FINISHED){
|
||||||
|
goto QUITTING;
|
||||||
|
}
|
||||||
|
|
||||||
} /* while */
|
} /* while */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user