From 84e75fd9cf233e8525ae7548cba0cec1418dcf97 Mon Sep 17 00:00:00 2001 From: SJ Date: Tue, 22 Nov 2011 14:25:51 +0100 Subject: [PATCH] attachment fixes for 0.1.6 --- src/attachment.c | 2 +- src/config.h | 2 +- util/db-mysql.sql | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/attachment.c b/src/attachment.c index a3d1b8aa..e8809fd0 100644 --- a/src/attachment.c +++ b/src/attachment.c @@ -23,7 +23,7 @@ int store_attachments(struct session_data *sdata, struct _state *state, struct _ MYSQL_RES *res; MYSQL_ROW row; - for(i=0; in_attachments; i++){ + for(i=1; i<=state->n_attachments; i++){ found = 0; id = 0; diff --git a/src/config.h b/src/config.h index c089e41f..fc66ef12 100644 --- a/src/config.h +++ b/src/config.h @@ -11,7 +11,7 @@ #define PROGNAME "piler" -#define VERSION "0.1.5" +#define VERSION "0.1.6" #define PROGINFO VERSION ", Janos SUTO \n\n" CONFIGURE_PARAMS "\n\nSend bugs/issues to https://jira.acts.hu:8443/\n" diff --git a/util/db-mysql.sql b/util/db-mysql.sql index 9f04ee9f..032cd5d0 100644 --- a/util/db-mysql.sql +++ b/util/db-mysql.sql @@ -62,6 +62,7 @@ create table `archiving_rule` ( `id` bigint unsigned not null auto_increment, `from` char(128) default null, `to` char(255) default null, + `subject` char(255) default null, `_size` char(2) default null, `size` int default 0, primary key (`id`)