mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-25 17:30:12 +01:00
remove temp attachment files if it's a duplicate message
This commit is contained in:
parent
5a356f0148
commit
466d0e383f
@ -378,6 +378,7 @@ int process_message(struct session_data *sdata, struct _state *state, struct __d
|
|||||||
/* discard if existing message_id */
|
/* discard if existing message_id */
|
||||||
|
|
||||||
if(is_existing_message_id(sdata, state, data, cfg) == 1){
|
if(is_existing_message_id(sdata, state, data, cfg) == 1){
|
||||||
|
for(i=1; i<=state->n_attachments; i++) unlink(state->attachments[i].internalname);
|
||||||
return ERR_EXISTS;
|
return ERR_EXISTS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user