mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-11-08 00:21:59 +01:00
minor code cleanup in message.c
This commit is contained in:
parent
9b6aeef7e6
commit
01a92a4a16
@ -246,7 +246,7 @@ void remove_stripped_attachments(struct _state *state){
|
||||
|
||||
|
||||
int process_message(struct session_data *sdata, struct _state *state, struct __data *data, struct __config *cfg){
|
||||
int i, rc;
|
||||
int rc;
|
||||
uint64 id=0;
|
||||
|
||||
/* discard if existing message_id */
|
||||
@ -270,9 +270,7 @@ int process_message(struct session_data *sdata, struct _state *state, struct __d
|
||||
if(state->n_attachments > 0){
|
||||
rc = store_attachments(sdata, state, data, cfg);
|
||||
|
||||
for(i=1; i<=state->n_attachments; i++){
|
||||
unlink(state->attachments[i].internalname);
|
||||
}
|
||||
remove_stripped_attachments(state);
|
||||
|
||||
if(rc) return ERR;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user