From f530f84d6215a44c55afad50f59db65109d574b2 Mon Sep 17 00:00:00 2001 From: SJ Date: Tue, 19 Mar 2013 21:56:08 +0100 Subject: [PATCH] fixed follow-up handling --- src/config.h | 2 +- src/message.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/config.h b/src/config.h index e306c398..964f74ec 100644 --- a/src/config.h +++ b/src/config.h @@ -13,7 +13,7 @@ #define VERSION "0.1.23-master-branch" -#define BUILD 775 +#define BUILD 776 #define HOSTID "mailarchiver" diff --git a/src/message.c b/src/message.c index 80f493f4..d0cad380 100644 --- a/src/message.c +++ b/src/message.c @@ -247,9 +247,9 @@ int update_metadata_reference(struct session_data *sdata, struct _state *state, len[0] = strlen(ref); bind[0].length = &len[0]; bind[1].buffer_type = MYSQL_TYPE_STRING; - bind[1].buffer = state->message_id; + bind[1].buffer = state->reference; bind[1].is_null = 0; - len[1] = strlen(state->message_id); bind[1].length = &len[1]; + len[1] = strlen(state->reference); bind[1].length = &len[1]; if(mysql_stmt_bind_param(data->stmt_update_metadata_reference, bind)){ syslog(LOG_PRIORITY, "%s: %s.mysql_stmt_bind_param() error: %s", sdata->ttmpfile, SQL_METADATA_TABLE, mysql_stmt_error(data->stmt_update_metadata_reference)); @@ -259,7 +259,7 @@ int update_metadata_reference(struct session_data *sdata, struct _state *state, rc = mysql_stmt_execute(data->stmt_update_metadata_reference); if(rc == 0) ret = OK; - if(cfg->verbosity >= _LOG_DEBUG) syslog(LOG_PRIORITY, "%s: updated meta reference for '%s', rc=%d", sdata->ttmpfile, state->message_id, rc); + if(cfg->verbosity >= _LOG_DEBUG) syslog(LOG_PRIORITY, "%s: updated meta reference for '%s', rc=%d", sdata->ttmpfile, state->reference, rc); CLOSE: return ret;