ezmlmx 0.68
ezmlmx
|
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include "alloc.h"
#include "error.h"
#include "stralloc.h"
#include "str.h"
#include "env.h"
#include "sig.h"
#include "getconf.h"
#include "byte.h"
#include "getln.h"
#include "case.h"
#include "qmail.h"
#include "buffer.h"
#include "readwrite.h"
#include "seek.h"
#include "quote.h"
#include "datetime.h"
#include "now.h"
#include "date822fmt.h"
#include "fmt.h"
#include "getoptb.h"
#include "cookie.h"
#include "makehash.h"
#include "ezcopy.h"
#include "constmap.h"
#include "subscribe.h"
#include "hdr.h"
#include "open.h"
#include "lock.h"
#include "scan.h"
#include "idxthread.h"
#include "idx.h"
#include "mime.h"
#include "errtxt.h"
#include "auto_version.h"
#include "logmsg.h"
#include "lockfile.h"
#include "ezmlm.h"
Go to the source code of this file.
Macros | |
#define | WHO "ezmlm-get" |
Functions | |
ssize_t | qqwrite (int fd, char *buf, unsigned int len) |
int | subto (char *s, unsigned int l) |
void | lockup () |
void | unlock () |
void | code_qput (char *s, unsigned int n) |
void | zapnonsub (char *szerr) |
void | tosender () |
void | get_num () |
unsigned long | dignum () |
void | write_ulong (unsigned long num, unsigned long cum, unsigned long dat, char *fn, char *fnn) |
void | normal_bottom (char format) |
void | presub (unsigned long from, unsigned long to, stralloc *subject, int factype, char format) |
void | postsub (int factype, char format) |
void | postmsg (char format) |
void | copymsg (unsigned long msg, int fd, char format) |
void | mime_getbad (unsigned long msg) |
void | msgout (unsigned long msg, char format) |
void | digest (msgentry *msgtable, subentry *subtable, authentry *authtable, unsigned long from, unsigned long to, stralloc *subj, int factype, char format) |
void | doheaders () |
int | main (int argc, char **argv) |
Variables | |
int | flagdo = 1 |
int | flagbottom = 1 |
int | flagpublic = 2 |
char | flagcd = '\0' |
int | flagsub = 0 |
const char * | digsz |
stralloc | outhost = {0} |
stralloc | outlocal = {0} |
stralloc | charset = {0} |
char | hboundary [HASHLEN] |
stralloc | listname = {0} |
stralloc | mailinglist = {0} |
stralloc | qmqpservers = {0} |
stralloc | fn = {0} |
stralloc | moddir = {0} |
stralloc | mydtline = {0} |
stralloc | digheaders = {0} |
stralloc | seed = {0} |
struct constmap | digheadersmap |
char | schar [] = "00_" |
stralloc | listno = {0} |
datetime_sec | when |
unsigned long | cumsize = 0L |
unsigned long | cumsizen = 0L |
unsigned long | max = 0L |
unsigned long | msgsize = 0L |
datetime_sec | digwhen |
char | szmsgnum [FMT_ULONG] |
char | boundary [COOKIE] |
char | hashout [COOKIE] |
stralloc | line = {0} |
stralloc | line2 = {0} |
stralloc | qline = {0} |
stralloc | quoted = {0} |
stralloc | msgnum = {0} |
stralloc | num = {0} |
stralloc | subject = {0} |
stralloc | archdate = {0} |
stralloc | archfrom = {0} |
stralloc | archto = {0} |
stralloc | archcc = {0} |
stralloc | archsubject = {0} |
stralloc | archmessageid = {0} |
stralloc | archkeywords = {0} |
stralloc | archblanklines = {0} |
char | archtype =' ' |
stralloc | mod = {0} |
const char * | pmod = (char *) 0 |
stralloc | ddir = {0} |
stralloc | edir = {0} |
int | act = AC_NONE |
int | flageditor = 0 |
struct stat | st |
int | flaglocked = 0 |
int | flagarchived |
int | flagindexed |
int | flagq = 0 |
char * | dir |
char * | workdir |
char * | sender |
char * | digestcode |
struct qmail | |
char | qqbuf [1] |
buffer | bq = BUFFER_INIT(qqwrite,-1,qqbuf,sizeof(qqbuf)) |
char | inbuf [1024] |
buffer | bi = BUFFER_INIT(read,0,inbuf,sizeof(inbuf)) |
buffer | bj = BUFFER_INIT(read,0,inbuf,sizeof(inbuf)) |
buffer | bn |
char | numbuf [16] |
buffer | bt |
char | textbuf [1024] |
buffer | bx |
char | indexbuf [1024] |
int | fdlock |
Definition in file ezmlm-get.c.
#define WHO "ezmlm-get" |
Definition at line 42 of file ezmlm-get.c.
void code_qput | ( | char * | s, |
unsigned int | n ) |
Definition at line 187 of file ezmlm-get.c.
void copymsg | ( | unsigned long | msg, |
int | fd, | ||
char | format ) |
Definition at line 417 of file ezmlm-get.c.
void digest | ( | msgentry * | msgtable, |
subentry * | subtable, | ||
authentry * | authtable, | ||
unsigned long | from, | ||
unsigned long | to, | ||
stralloc * | subj, | ||
int | factype, | ||
char | format ) |
Definition at line 666 of file ezmlm-get.c.
unsigned long dignum | ( | ) |
Definition at line 251 of file ezmlm-get.c.
void doheaders | ( | ) |
Definition at line 732 of file ezmlm-get.c.
void get_num | ( | ) |
Definition at line 238 of file ezmlm-get.c.
void lockup | ( | ) |
Definition at line 169 of file ezmlm-get.c.
int main | ( | int | argc, |
char ** | argv ) |
void mime_getbad | ( | unsigned long | msg | ) |
Definition at line 575 of file ezmlm-get.c.
void msgout | ( | unsigned long | msg, |
char | format ) |
Definition at line 593 of file ezmlm-get.c.
void normal_bottom | ( | char | format | ) |
Definition at line 302 of file ezmlm-get.c.
void postmsg | ( | char | format | ) |
Definition at line 396 of file ezmlm-get.c.
void postsub | ( | int | factype, |
char | format ) |
Definition at line 379 of file ezmlm-get.c.
void presub | ( | unsigned long | from, |
unsigned long | to, | ||
stralloc * | subject, | ||
int | factype, | ||
char | format ) |
Definition at line 340 of file ezmlm-get.c.
ssize_t qqwrite | ( | int | fd, |
char * | buf, | ||
unsigned int | len ) |
int subto | ( | char * | s, |
unsigned int | l ) |
Definition at line 141 of file ezmlm-get.c.
void tosender | ( | ) |
Definition at line 224 of file ezmlm-get.c.
void unlock | ( | ) |
void write_ulong | ( | unsigned long | num, |
unsigned long | cum, | ||
unsigned long | dat, | ||
char * | fn, | ||
char * | fnn ) |
Definition at line 268 of file ezmlm-get.c.
void zapnonsub | ( | char * | szerr | ) |
Definition at line 209 of file ezmlm-get.c.
int act = AC_NONE |
Definition at line 119 of file ezmlm-get.c.
stralloc archblanklines = {0} |
Definition at line 107 of file ezmlm-get.c.
stralloc archcc = {0} |
Definition at line 103 of file ezmlm-get.c.
stralloc archdate = {0} |
Definition at line 100 of file ezmlm-get.c.
stralloc archfrom = {0} |
Definition at line 101 of file ezmlm-get.c.
stralloc archkeywords = {0} |
Definition at line 106 of file ezmlm-get.c.
stralloc archmessageid = {0} |
Definition at line 105 of file ezmlm-get.c.
stralloc archsubject = {0} |
Definition at line 104 of file ezmlm-get.c.
stralloc archto = {0} |
Definition at line 102 of file ezmlm-get.c.
char archtype =' ' |
Definition at line 108 of file ezmlm-get.c.
Definition at line 153 of file ezmlm-get.c.
Definition at line 154 of file ezmlm-get.c.
buffer bn |
Definition at line 156 of file ezmlm-get.c.
char boundary[COOKIE] |
Definition at line 89 of file ezmlm-get.c.
buffer bq = BUFFER_INIT(qqwrite,-1,qqbuf,sizeof(qqbuf)) |
Definition at line 150 of file ezmlm-get.c.
buffer bt |
Definition at line 159 of file ezmlm-get.c.
buffer bx |
Definition at line 162 of file ezmlm-get.c.
stralloc charset = {0} |
Definition at line 64 of file ezmlm-get.c.
unsigned long cumsize = 0L |
Definition at line 81 of file ezmlm-get.c.
unsigned long cumsizen = 0L |
Definition at line 82 of file ezmlm-get.c.
stralloc ddir = {0} |
Definition at line 116 of file ezmlm-get.c.
char* digestcode |
Definition at line 131 of file ezmlm-get.c.
stralloc digheaders = {0} |
Definition at line 73 of file ezmlm-get.c.
struct constmap digheadersmap |
Definition at line 75 of file ezmlm-get.c.
const char* digsz |
Definition at line 55 of file ezmlm-get.c.
datetime_sec digwhen |
Definition at line 85 of file ezmlm-get.c.
char* dir |
Definition at line 128 of file ezmlm-get.c.
stralloc edir = {0} |
Definition at line 117 of file ezmlm-get.c.
int fdlock |
Definition at line 165 of file ezmlm-get.c.
int flagarchived |
Definition at line 124 of file ezmlm-get.c.
int flagbottom = 1 |
Definition at line 51 of file ezmlm-get.c.
char flagcd = '\0' |
Definition at line 53 of file ezmlm-get.c.
int flagdo = 1 |
Definition at line 50 of file ezmlm-get.c.
int flageditor = 0 |
Definition at line 120 of file ezmlm-get.c.
int flagindexed |
Definition at line 125 of file ezmlm-get.c.
int flaglocked = 0 |
Definition at line 123 of file ezmlm-get.c.
int flagpublic = 2 |
Definition at line 52 of file ezmlm-get.c.
int flagq = 0 |
Definition at line 126 of file ezmlm-get.c.
int flagsub = 0 |
Definition at line 54 of file ezmlm-get.c.
stralloc fn = {0} |
Definition at line 70 of file ezmlm-get.c.
char hashout[COOKIE] |
Definition at line 90 of file ezmlm-get.c.
char hboundary[HASHLEN] |
Definition at line 65 of file ezmlm-get.c.
char inbuf[1024] |
Definition at line 152 of file ezmlm-get.c.
char indexbuf[1024] |
Definition at line 163 of file ezmlm-get.c.
stralloc line = {0} |
Definition at line 91 of file ezmlm-get.c.
stralloc line2 = {0} |
Definition at line 92 of file ezmlm-get.c.
stralloc listname = {0} |
Definition at line 67 of file ezmlm-get.c.
stralloc listno = {0} |
Definition at line 78 of file ezmlm-get.c.
stralloc mailinglist = {0} |
Definition at line 68 of file ezmlm-get.c.
unsigned long max = 0L |
Definition at line 83 of file ezmlm-get.c.
stralloc mod = {0} |
Definition at line 112 of file ezmlm-get.c.
stralloc moddir = {0} |
Definition at line 71 of file ezmlm-get.c.
stralloc msgnum = {0} |
Definition at line 95 of file ezmlm-get.c.
unsigned long msgsize = 0L |
Definition at line 84 of file ezmlm-get.c.
stralloc mydtline = {0} |
Definition at line 72 of file ezmlm-get.c.
stralloc num = {0} |
Definition at line 96 of file ezmlm-get.c.
char numbuf[16] |
Definition at line 157 of file ezmlm-get.c.
stralloc outhost = {0} |
Definition at line 62 of file ezmlm-get.c.
stralloc outlocal = {0} |
Definition at line 63 of file ezmlm-get.c.
const char* pmod = (char *) 0 |
Definition at line 113 of file ezmlm-get.c.
stralloc qline = {0} |
Definition at line 93 of file ezmlm-get.c.
stralloc qmqpservers = {0} |
Definition at line 69 of file ezmlm-get.c.
struct qmail qq |
Definition at line 133 of file ezmlm-get.c.
char qqbuf[1] |
Definition at line 149 of file ezmlm-get.c.
stralloc quoted = {0} |
Definition at line 94 of file ezmlm-get.c.
char schar[] = "00_" |
Definition at line 77 of file ezmlm-get.c.
stralloc seed = {0} |
Definition at line 74 of file ezmlm-get.c.
char* sender |
Definition at line 130 of file ezmlm-get.c.
struct stat st |
Definition at line 121 of file ezmlm-get.c.
stralloc subject = {0} |
Definition at line 97 of file ezmlm-get.c.
char szmsgnum[FMT_ULONG] |
Definition at line 88 of file ezmlm-get.c.
char textbuf[1024] |
Definition at line 160 of file ezmlm-get.c.
datetime_sec when |
Definition at line 80 of file ezmlm-get.c.
char* workdir |
Definition at line 129 of file ezmlm-get.c.