mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-11-07 22:21:59 +01:00
Restore data folder after processing the imported message
Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
parent
01c896e281
commit
c2be67aff0
@ -97,7 +97,10 @@ int import_message(struct session_data *sdata, struct data *data, struct config
|
||||
// When importing emails, we should add the retention value (later) to the original sent value
|
||||
sdata->retained = sdata->sent;
|
||||
|
||||
// backup original value of data->folder
|
||||
int folder = data->folder;
|
||||
rc = process_message(sdata, &state, data, cfg);
|
||||
data->folder = folder;
|
||||
unlink(state.message_id_hash);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user