minor fixes

This commit is contained in:
SJ 2012-02-02 15:29:07 +01:00
parent b0be982ca2
commit 91d233cfb0
2 changed files with 3 additions and 2 deletions

View File

@ -47,7 +47,7 @@ int import_message(char *filename, struct session_data *sdata, struct __data *da
post_parse(sdata, &state, cfg);
if(sdata->sent > sdata->now) sdata->sent = sdata->now;
if(sdata->sent == -1) sdata->sent = 0;
rule = check_againt_ruleset(data->rules, &state, st.st_size);

View File

@ -14,7 +14,7 @@ drop table if exists `sph_index`;
create table if not exists `sph_index` (
`id` bigint not null,
`from` char(255) default null,
`to` text(512) default null,
`to` text(8192) default null,
`fromdomain` char(255) default null,
`todomain` text(512) default null,
`subject` text(512) default null,
@ -55,6 +55,7 @@ create index metadata_idx on metadata(`piler_id`);
create index metadata_idx2 on metadata(`message_id`);
create index metadata_idx3 on metadata(`bodydigest`);
create index metadata_idx4 on metadata(`deleted`);
create index metadata_idx5 on metadata(`arrived`);
drop table if exists `rcpt`;