ezmlmx 0.68
ezmlmx
|
idxthread.c contains routines to from the ezmlm-idx subject index build a structure of unique subjects as well as a table of messages with pointers to the subject. This leads to information on message threads arranged chronologically within the thread, and with the threads arranged chronologically by the first message within the range. idx_mkthreads() will arrange the author list in a similar manner. This saves some space, and takes a little extra time. It's needed when generating an author index. More...
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include "error.h"
#include "alloc.h"
#include "str.h"
#include "stralloc.h"
#include "logmsg.h"
#include "lock.h"
#include "open.h"
#include "getln.h"
#include "scan.h"
#include "byte.h"
#include "idx.h"
#include "errtxt.h"
#include "buffer.h"
#include "fmt.h"
#include "readwrite.h"
#include "lockfile.h"
#include "date2yyyymm.h"
#include "getconf.h"
Go to the source code of this file.
Macros | |
#define | WHO "idxthread" |
#define | HASHLEN 20 |
#define | DATENO 100 |
Functions | |
void | idx_mkthreads (msgentry **pmsgtable, subentry **psubtable, authentry **pauthtable, dateentry **pdatetable, unsigned long msg_from, unsigned long msg_to, unsigned long msg_latest, int locked) |
void | idx_mkthread (msgentry **pmsgtable, subentry **psubtable, authentry **pauthtable, unsigned long msg_from, unsigned long msg_to, unsigned long msg_master, unsigned long msg_latest, int locked) |
void | idx_mklist (msgentry **pmsgtable, subentry **psubtable, authentry **pauthtable, unsigned long msg_from, unsigned long msg_to) |
void | idx_destroythread (msgentry *msgtable, subentry *subtable, authentry *authtable) |
idxthread.c contains routines to from the ezmlm-idx subject index build a structure of unique subjects as well as a table of messages with pointers to the subject. This leads to information on message threads arranged chronologically within the thread, and with the threads arranged chronologically by the first message within the range. idx_mkthreads() will arrange the author list in a similar manner. This saves some space, and takes a little extra time. It's needed when generating an author index.
Definition in file idxthread.c.
#define DATENO 100 |
Definition at line 42 of file idxthread.c.
#define HASHLEN 20 |
Definition at line 25 of file idxthread.c.
#define WHO "idxthread" |
Definition at line 24 of file idxthread.c.
void idx_mklist | ( | msgentry ** | pmsgtable, |
subentry ** | psubtable, | ||
authentry ** | pauthtable, | ||
unsigned long | msg_from, | ||
unsigned long | msg_to ) |
Definition at line 636 of file idxthread.c.
void idx_mkthread | ( | msgentry ** | pmsgtable, |
subentry ** | psubtable, | ||
authentry ** | pauthtable, | ||
unsigned long | msg_from, | ||
unsigned long | msg_to, | ||
unsigned long | msg_master, | ||
unsigned long | msg_latest, | ||
int | locked ) |
Definition at line 424 of file idxthread.c.
void idx_mkthreads | ( | msgentry ** | pmsgtable, |
subentry ** | psubtable, | ||
authentry ** | pauthtable, | ||
dateentry ** | pdatetable, | ||
unsigned long | msg_from, | ||
unsigned long | msg_to, | ||
unsigned long | msg_latest, | ||
int | locked ) |
Definition at line 156 of file idxthread.c.