mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-24 18:30:11 +01:00
improved the format of the attachment pointer
This commit is contained in:
parent
67b6b44839
commit
b8e321fc9d
@ -50,7 +50,9 @@ source tag
|
||||
sql_pass = sphinx
|
||||
|
||||
sql_query_pre = SET NAMES utf8
|
||||
sql_query = SELECT id, `tag` FROM `tag`
|
||||
sql_query = SELECT id, `uid`, `tag` FROM `tag`
|
||||
|
||||
sql_attr_uint = uid
|
||||
|
||||
}
|
||||
|
||||
|
@ -135,7 +135,7 @@ int parse_line(char *buf, struct _state *state, struct session_data *sdata, stru
|
||||
|
||||
}
|
||||
else {
|
||||
snprintf(puf, sizeof(puf)-1, "ATTACHMENT_POINTER_%s.a%d", sdata->ttmpfile, state->n_attachments);
|
||||
snprintf(puf, sizeof(puf)-1, "ATTACHMENT_POINTER_%s.a%d_XXX_PILER", sdata->ttmpfile, state->n_attachments);
|
||||
write(state->mfd, puf, strlen(puf));
|
||||
//printf("%s", puf);
|
||||
}
|
||||
|
@ -77,8 +77,9 @@ create index `attachment_idx2` on `attachment`(`sig`);
|
||||
drop table if exists `tag`;
|
||||
create table if not exists `tag` (
|
||||
`id` bigint not null unique,
|
||||
`uid` int not null,
|
||||
`tag` char(255) default null
|
||||
);
|
||||
) ENGINE=InnoDB;
|
||||
|
||||
|
||||
drop table if exists `archiving_rule`;
|
||||
@ -95,6 +96,20 @@ create table if not exists `archiving_rule` (
|
||||
primary key (`id`)
|
||||
) ENGINE=InnoDB;
|
||||
|
||||
|
||||
drop table if exists `retention_rule`;
|
||||
create table if not exists `retention_rule` (
|
||||
`id` bigint unsigned not null auto_increment,
|
||||
|
||||
`subject` char(255) default null,
|
||||
|
||||
`days` int not null,
|
||||
|
||||
primary key (`id`)
|
||||
|
||||
) ENGINE=InnoDB;
|
||||
|
||||
|
||||
drop table if exists `counter`;
|
||||
create table if not exists `counter` (
|
||||
`rcvd` bigint unsigned default 0,
|
||||
@ -104,6 +119,7 @@ create table if not exists `counter` (
|
||||
|
||||
insert into `counter` values(0, 0, 0);
|
||||
|
||||
|
||||
drop table if exists `search`;
|
||||
create table if not exists `search` (
|
||||
`email` char(128) not null,
|
||||
|
Loading…
Reference in New Issue
Block a user