mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-11-07 22:31:59 +01:00
Fixed reindex utility
Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
parent
41f9973f18
commit
e789d1cd9d
@ -121,6 +121,12 @@ uint64 retrieve_email_by_metadata_id(struct session_data *sdata, struct data *da
|
||||
|
||||
snprintf(sdata->filename, SMALLBUFSIZE-1, "%s", filename);
|
||||
|
||||
struct stat st;
|
||||
sdata->tot_len = stat(filename, &st) == 0 ? st.st_size : 0;
|
||||
|
||||
sdata->internal_sender = sdata->internal_recipient = sdata->external_recipient = sdata->direction = 0;
|
||||
memset(sdata->attachments, 0, SMALLBUFSIZE);
|
||||
|
||||
state = parse_message(sdata, 1, data, cfg);
|
||||
post_parse(sdata, &state, cfg);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user