mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-11-07 23:21:59 +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;
|
||||
|
||||
snprintf(buf, MAXBUFSIZE-1, SMTP_RESP_221_GOODBYE, cfg->hostid);
|
||||
send(new_sd, buf, strlen(buf), 0);
|
||||
if(cfg->verbosity >= _LOG_DEBUG) syslog(LOG_PRIORITY, "%s: sent: %s", sdata.ttmpfile, buf);
|
||||
strncat(resp, buf, MAXBUFSIZE-1);
|
||||
|
||||
unlink(sdata.ttmpfile);
|
||||
unlink(sdata.tmpframe);
|
||||
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);
|
||||
}
|
||||
|
||||
if(state == SMTP_STATE_FINISHED){
|
||||
goto QUITTING;
|
||||
}
|
||||
|
||||
} /* while */
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user