mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-01-23 19:59:59 +01:00
date parsing fix
This commit is contained in:
parent
f763ed5f4d
commit
a913c80172
@ -377,7 +377,7 @@ int parse_line(char *buf, struct _state *state, struct session_data *sdata, int
|
|||||||
* in piler daemon: sdata->sent = sdata->now
|
* in piler daemon: sdata->sent = sdata->now
|
||||||
*/
|
*/
|
||||||
|
|
||||||
else if(strncasecmp(buf, "Date:", strlen("Date:")) == 0){
|
else if(strncasecmp(buf, "Date:", strlen("Date:")) == 0 && state->is_1st_header == 1){
|
||||||
if(sdata->sent == 0) sdata->sent = parse_date_header(buf, cfg);
|
if(sdata->sent == 0) sdata->sent = parse_date_header(buf, cfg);
|
||||||
else {
|
else {
|
||||||
sdata->sent = parse_date_header(buf, cfg);
|
sdata->sent = parse_date_header(buf, cfg);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user