dedup debug message

This commit is contained in:
SJ 2015-05-06 12:22:15 +02:00
parent 3be7ea4f47
commit 54410669d4

View File

@ -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 */