mirror of
https://bitbucket.org/jsuto/piler.git
synced 2026-04-05 17:39:20 +02:00
parse the Delivery-date: header field if the Date: field is missing
This commit is contained in:
@@ -67,10 +67,13 @@ int import_message(char *filename, struct session_data *sdata, struct __data *da
|
||||
|
||||
|
||||
sdata->sent = 0;
|
||||
sdata->delivered = 0;
|
||||
|
||||
state = parse_message(sdata, 1, cfg);
|
||||
post_parse(sdata, &state, cfg);
|
||||
|
||||
if(sdata->sent <= 0 && sdata->delivered > 0) sdata->sent = sdata->delivered;
|
||||
|
||||
if(sdata->sent > sdata->now) sdata->sent = sdata->now;
|
||||
if(sdata->sent == -1) sdata->sent = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user