mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-11-08 04:31:58 +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 process_message(struct session_data *sdata, struct _state *state, struct __data *data, struct __config *cfg){
|
||||||
int i, rc;
|
int rc;
|
||||||
uint64 id=0;
|
uint64 id=0;
|
||||||
|
|
||||||
/* discard if existing message_id */
|
/* 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){
|
if(state->n_attachments > 0){
|
||||||
rc = store_attachments(sdata, state, data, cfg);
|
rc = store_attachments(sdata, state, data, cfg);
|
||||||
|
|
||||||
for(i=1; i<=state->n_attachments; i++){
|
remove_stripped_attachments(state);
|
||||||
unlink(state->attachments[i].internalname);
|
|
||||||
}
|
|
||||||
|
|
||||||
if(rc) return ERR;
|
if(rc) return ERR;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user