diff --git a/src/message.c b/src/message.c index df8524a3..0b035cff 100644 --- a/src/message.c +++ b/src/message.c @@ -256,10 +256,12 @@ int process_message(struct session_data *sdata, struct _state *state, struct __d fd = open(state->message_id_hash, O_CREAT|O_EXCL|O_RDWR|O_TRUNC, S_IRUSR|S_IWUSR); if(fd == -1){ remove_stripped_attachments(state); + if(cfg->verbosity >= _LOG_DEBUG) syslog(LOG_PRIORITY, "%s: touch %s FAILED (%s)", sdata->ttmpfile, state->message_id_hash, state->message_id); return ERR_EXISTS; } close(fd); + if(cfg->verbosity >= _LOG_DEBUG) syslog(LOG_PRIORITY, "%s: touch %s OK (%s)", sdata->ttmpfile, state->message_id_hash, state->message_id); /* store base64 encoded file attachments */