ezmlmx 0.68
ezmlmx
Loading...
Searching...
No Matches
idxthread.c File Reference

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"
Include dependency graph for idxthread.c:

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)

Detailed Description

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.

Author
Bruce Guenter
Date
2005-02-09 16:24:15Z

Definition in file idxthread.c.

Macro Definition Documentation

◆ DATENO

#define DATENO   100

Definition at line 42 of file idxthread.c.

◆ HASHLEN

#define HASHLEN   20

Definition at line 25 of file idxthread.c.

◆ WHO

#define WHO   "idxthread"

Definition at line 24 of file idxthread.c.

Function Documentation

◆ idx_destroythread()

void idx_destroythread ( msgentry * msgtable,
subentry * subtable,
authentry * authtable )

Definition at line 683 of file idxthread.c.

Here is the caller graph for this function:

◆ idx_mklist()

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.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ idx_mkthread()

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.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ idx_mkthreads()

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.

Here is the call graph for this function:
Here is the caller graph for this function: