attachment fixes for 0.1.6

This commit is contained in:
SJ 2011-11-22 14:25:51 +01:00
parent 7a0aa44ad9
commit 84e75fd9cf
3 changed files with 3 additions and 2 deletions

View File

@ -23,7 +23,7 @@ int store_attachments(struct session_data *sdata, struct _state *state, struct _
MYSQL_RES *res; MYSQL_RES *res;
MYSQL_ROW row; MYSQL_ROW row;
for(i=0; i<state->n_attachments; i++){ for(i=1; i<=state->n_attachments; i++){
found = 0; found = 0;
id = 0; id = 0;

View File

@ -11,7 +11,7 @@
#define PROGNAME "piler" #define PROGNAME "piler"
#define VERSION "0.1.5" #define VERSION "0.1.6"
#define PROGINFO VERSION ", Janos SUTO <sj@acts.hu>\n\n" CONFIGURE_PARAMS "\n\nSend bugs/issues to https://jira.acts.hu:8443/\n" #define PROGINFO VERSION ", Janos SUTO <sj@acts.hu>\n\n" CONFIGURE_PARAMS "\n\nSend bugs/issues to https://jira.acts.hu:8443/\n"

View File

@ -62,6 +62,7 @@ create table `archiving_rule` (
`id` bigint unsigned not null auto_increment, `id` bigint unsigned not null auto_increment,
`from` char(128) default null, `from` char(128) default null,
`to` char(255) default null, `to` char(255) default null,
`subject` char(255) default null,
`_size` char(2) default null, `_size` char(2) default null,
`size` int default 0, `size` int default 0,
primary key (`id`) primary key (`id`)