remove temp attachment files if it's a duplicate message

This commit is contained in:
SJ 2012-06-20 14:17:08 +02:00
parent 5a356f0148
commit 466d0e383f

View File

@ -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;
} }