ezmlmx 0.68
ezmlmx
Loading...
Searching...
No Matches
ezmlm-idx.c File Reference
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include "stralloc.h"
#include "error.h"
#include "lock.h"
#include "readclose.h"
#include "open.h"
#include "getln.h"
#include "getoptb.h"
#include "case.h"
#include "scan.h"
#include "str.h"
#include "fmt.h"
#include "readwrite.h"
#include "exit.h"
#include "buffer.h"
#include "sig.h"
#include "byte.h"
#include "idx.h"
#include "mime.h"
#include "errtxt.h"
#include "getconf.h"
#include "makehash.h"
#include "auto_version.h"
#include "logmsg.h"
#include "lockfile.h"
Include dependency graph for ezmlm-idx.c:

Go to the source code of this file.

Macros

#define WHO   "ezmlm-idx"

Functions

int idx_get_trimsubject (void)
 reads an open message from 'fd', extracts the subject (if any), and returns the subject in 'sub', the author in 'author', and the received rfc822 date to 'received'. 'fatal' is a program-specific error string. returns: 0 - no reply no prefix 1 - reply no prefix 2 - prefix no reply 3 - reply & prefix No terminal '
' in any of the strallocs!
int main (int argc, char **argv)

Variables

char strnum [FMT_ULONG]
char hash [HASHLEN]
stralloc fnadir = {0}
stralloc fnif = {0}
stralloc fnifn = {0}
stralloc fnaf = {0}
stralloc line = {0}
stralloc lines = {0}
stralloc dummy = {0}
int fdindexn
int fdlock
int fd
int flagdate = 0
buffer bx
char indexbuf [1024]
struct stat st
stralloc subject = {0}
stralloc author = {0}
stralloc authmail = {0}
stralloc received = {0}
stralloc prefix = {0}
stralloc charset = {0}
stralloc num = {0}

Detailed Description

Author
Bruce Guenter

date 2005-02-09 21:28:36Z

Definition in file ezmlm-idx.c.

Macro Definition Documentation

◆ WHO

#define WHO   "ezmlm-idx"

Definition at line 29 of file ezmlm-idx.c.

Function Documentation

◆ idx_get_trimsubject()

int idx_get_trimsubject ( void )

reads an open message from 'fd', extracts the subject (if any), and returns the subject in 'sub', the author in 'author', and the received rfc822 date to 'received'. 'fatal' is a program-specific error string. returns: 0 - no reply no prefix 1 - reply no prefix 2 - prefix no reply 3 - reply & prefix No terminal '
' in any of the strallocs!

Definition at line 89 of file ezmlm-idx.c.

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

◆ main()

int main ( int argc,
char ** argv )

Definition at line 183 of file ezmlm-idx.c.

Here is the call graph for this function:

Variable Documentation

◆ authmail

stralloc authmail = {0}

Definition at line 67 of file ezmlm-idx.c.

◆ author

stralloc author = {0}

Definition at line 66 of file ezmlm-idx.c.

◆ bx

buffer bx

Definition at line 60 of file ezmlm-idx.c.

◆ charset

stralloc charset = {0}

Definition at line 70 of file ezmlm-idx.c.

◆ dummy

stralloc dummy = {0}

Definition at line 48 of file ezmlm-idx.c.

◆ fd

int fd

Definition at line 52 of file ezmlm-idx.c.

◆ fdindexn

int fdindexn

Definition at line 50 of file ezmlm-idx.c.

◆ fdlock

int fdlock

Definition at line 51 of file ezmlm-idx.c.

◆ flagdate

int flagdate = 0

Definition at line 53 of file ezmlm-idx.c.

◆ fnadir

stralloc fnadir = {0}

Definition at line 41 of file ezmlm-idx.c.

◆ fnaf

stralloc fnaf = {0}

Definition at line 44 of file ezmlm-idx.c.

◆ fnif

stralloc fnif = {0}

Definition at line 42 of file ezmlm-idx.c.

◆ fnifn

stralloc fnifn = {0}

Definition at line 43 of file ezmlm-idx.c.

◆ hash

char hash[HASHLEN]

Definition at line 39 of file ezmlm-idx.c.

◆ indexbuf

char indexbuf[1024]

Definition at line 61 of file ezmlm-idx.c.

◆ line

stralloc line = {0}

Definition at line 46 of file ezmlm-idx.c.

◆ lines

stralloc lines = {0}

Definition at line 47 of file ezmlm-idx.c.

◆ num

stralloc num = {0}

Definition at line 72 of file ezmlm-idx.c.

◆ prefix

stralloc prefix = {0}

Definition at line 69 of file ezmlm-idx.c.

◆ received

stralloc received = {0}

Definition at line 68 of file ezmlm-idx.c.

◆ st

struct stat st

Definition at line 63 of file ezmlm-idx.c.

◆ strnum

char strnum[FMT_ULONG]

Definition at line 38 of file ezmlm-idx.c.

◆ subject

stralloc subject = {0}

Definition at line 65 of file ezmlm-idx.c.