ezmlmx 0.68
ezmlmx
|
#include <sys/types.h>
#include <sys/stat.h>
#include <stdio.h>
#include <unistd.h>
#include "error.h"
#include "stralloc.h"
#include "str.h"
#include "env.h"
#include "sig.h"
#include "readclose.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 "fmt.h"
#include "subscribe.h"
#include "cookie.h"
#include "getoptb.h"
#include "ezcopy.h"
#include "errtxt.h"
#include "open.h"
#include "lock.h"
#include "scan.h"
#include "mime.h"
#include "hdr.h"
#include "idx.h"
#include "auto_version.h"
#include "logmsg.h"
#include "lockfile.h"
#include "makehash.h"
#include "ezmlm.h"
Go to the source code of this file.
Macros | |
#define | WHO "ezmlm-manage" |
Functions | |
void | lock () |
void | unlock () |
void | make_verptarget () |
puts target with '=' instead of last '@' into stralloc verptarget and does set_cpverptarget | |
void | store_from (stralloc *frl, char *adr) |
char * | get_from (char *adr, char *act) |
int | hashok (char *action, char *ac) |
ssize_t | qqwrite (int fd, char *buf, unsigned int len) |
int | code_qput (char *s, unsigned int n) |
int | subto (char *s, unsigned int l) |
int | code_subto (char *s, unsigned int l) |
int | dummy_to (char *s, unsigned int l) |
void | to_owner () |
void | mod_bottom () |
void | msg_headers () |
Writes all the headers up to but not including subject. | |
int | geton (char *action) |
int | getoff (char *action) |
void | doconfirm (char *act) |
void | sendtomods () |
void | copybottom () |
int | main (int argc, char **argv) |
Variables | |
int | flagverbose = 0 |
int | flagnotify = 1 |
int | flagbottom = 1 |
int | flaglist = 0 |
int | flagget = 1 |
int | flagsubconf = 1 |
int | flagunsubconf = 1 |
int | flagunsubismod = 0 |
int | flagedit = 0 |
int | flagstorefrom = 1 |
char | flagcd = '\0' |
char | encin = '\0' |
int | flagdig = 0 |
char | urlstr [] = "%00" |
int | act = AC_NONE |
unsigned int | actlen = 0 |
char * | dir |
char * | workdir |
char * | sender |
stralloc | outhost = {0} |
stralloc | outlocal = {0} |
stralloc | key = {0} |
stralloc | mailinglist = {0} |
stralloc | mydtline = {0} |
stralloc | target = {0} |
stralloc | verptarget = {0} |
stralloc | confirm = {0} |
stralloc | line = {0} |
stralloc | qline = {0} |
stralloc | quoted = {0} |
stralloc | moddir = {0} |
stralloc | ddir = {0} |
stralloc | modsub = {0} |
stralloc | remote = {0} |
stralloc | from = {0} |
stralloc | to = {0} |
stralloc | owner = {0} |
stralloc | fromline = {0} |
stralloc | text = {0} |
stralloc | fnedit = {0} |
stralloc | fneditn = {0} |
stralloc | charset = {0} |
datetime_sec | when |
int | match |
unsigned int | max |
char | hash [COOKIE] |
char | hboundary [COOKIE] |
datetime_sec | hashdate |
char | inbuf [1024] |
buffer | bi = BUFFER_INIT(read,0,inbuf,(int) sizeof(inbuf)) |
buffer | bj = BUFFER_INIT(read,0,inbuf,(int) sizeof(inbuf)) |
buffer | bt |
char | textbuf [512] |
buffer | bf |
char | frombuf [512] |
int | fdlock |
struct qmail | |
char | qqbuf [1] |
buffer | bq = BUFFER_INIT(qqwrite,-1,qqbuf,(int) sizeof(qqbuf)) |
Definition in file ezmlm-manage.c.
#define WHO "ezmlm-manage" |
Definition at line 40 of file ezmlm-manage.c.
int code_qput | ( | char * | s, |
unsigned int | n ) |
Definition at line 296 of file ezmlm-manage.c.
int code_subto | ( | char * | s, |
unsigned int | l ) |
Definition at line 318 of file ezmlm-manage.c.
void copybottom | ( | ) |
Definition at line 560 of file ezmlm-manage.c.
void doconfirm | ( | char * | act | ) |
Definition at line 524 of file ezmlm-manage.c.
int dummy_to | ( | char * | s, |
unsigned int | l ) |
char * get_from | ( | char * | adr, |
char * | act ) |
Definition at line 221 of file ezmlm-manage.c.
int getoff | ( | char * | action | ) |
Definition at line 494 of file ezmlm-manage.c.
int geton | ( | char * | action | ) |
Definition at line 441 of file ezmlm-manage.c.
int hashok | ( | char * | action, |
char * | ac ) |
Definition at line 266 of file ezmlm-manage.c.
void lock | ( | ) |
Definition at line 126 of file ezmlm-manage.c.
int main | ( | int | argc, |
char ** | argv ) |
void make_verptarget | ( | ) |
puts target with '=' instead of last '@' into stralloc verptarget and does set_cpverptarget
Definition at line 135 of file ezmlm-manage.c.
void mod_bottom | ( | ) |
Definition at line 339 of file ezmlm-manage.c.
void msg_headers | ( | ) |
Writes all the headers up to but not including subject.
Definition at line 358 of file ezmlm-manage.c.
ssize_t qqwrite | ( | int | fd, |
char * | buf, | ||
unsigned int | len ) |
void sendtomods | ( | ) |
Definition at line 555 of file ezmlm-manage.c.
void store_from | ( | stralloc * | frl, |
char * | adr ) |
Definition at line 157 of file ezmlm-manage.c.
int subto | ( | char * | s, |
unsigned int | l ) |
void to_owner | ( | ) |
Definition at line 330 of file ezmlm-manage.c.
void unlock | ( | ) |
int act = AC_NONE |
Definition at line 69 of file ezmlm-manage.c.
unsigned int actlen = 0 |
Definition at line 70 of file ezmlm-manage.c.
buffer bf |
Definition at line 121 of file ezmlm-manage.c.
Definition at line 115 of file ezmlm-manage.c.
Definition at line 116 of file ezmlm-manage.c.
buffer bq = BUFFER_INIT(qqwrite,-1,qqbuf,(int) sizeof(qqbuf)) |
Definition at line 294 of file ezmlm-manage.c.
buffer bt |
Definition at line 118 of file ezmlm-manage.c.
stralloc charset = {0} |
Definition at line 103 of file ezmlm-manage.c.
stralloc confirm = {0} |
Definition at line 88 of file ezmlm-manage.c.
stralloc ddir = {0} |
Definition at line 93 of file ezmlm-manage.c.
char* dir |
Definition at line 71 of file ezmlm-manage.c.
char encin = '\0' |
Definition at line 63 of file ezmlm-manage.c.
int fdlock |
Definition at line 124 of file ezmlm-manage.c.
int flagbottom = 1 |
Definition at line 53 of file ezmlm-manage.c.
char flagcd = '\0' |
Definition at line 62 of file ezmlm-manage.c.
int flagdig = 0 |
Definition at line 64 of file ezmlm-manage.c.
int flagedit = 0 |
Definition at line 60 of file ezmlm-manage.c.
int flagget = 1 |
Definition at line 55 of file ezmlm-manage.c.
int flaglist = 0 |
Definition at line 54 of file ezmlm-manage.c.
int flagnotify = 1 |
Definition at line 50 of file ezmlm-manage.c.
int flagstorefrom = 1 |
Definition at line 61 of file ezmlm-manage.c.
int flagsubconf = 1 |
Definition at line 56 of file ezmlm-manage.c.
int flagunsubconf = 1 |
Definition at line 57 of file ezmlm-manage.c.
int flagunsubismod = 0 |
Definition at line 58 of file ezmlm-manage.c.
int flagverbose = 0 |
Definition at line 48 of file ezmlm-manage.c.
stralloc fnedit = {0} |
Definition at line 101 of file ezmlm-manage.c.
stralloc fneditn = {0} |
Definition at line 102 of file ezmlm-manage.c.
stralloc from = {0} |
Definition at line 96 of file ezmlm-manage.c.
char frombuf[512] |
Definition at line 122 of file ezmlm-manage.c.
stralloc fromline = {0} |
Definition at line 99 of file ezmlm-manage.c.
char hash[COOKIE] |
Definition at line 110 of file ezmlm-manage.c.
datetime_sec hashdate |
Definition at line 112 of file ezmlm-manage.c.
char hboundary[COOKIE] |
Definition at line 111 of file ezmlm-manage.c.
char inbuf[1024] |
Definition at line 114 of file ezmlm-manage.c.
stralloc key = {0} |
Definition at line 83 of file ezmlm-manage.c.
stralloc line = {0} |
Definition at line 89 of file ezmlm-manage.c.
stralloc mailinglist = {0} |
Definition at line 84 of file ezmlm-manage.c.
int match |
Definition at line 106 of file ezmlm-manage.c.
unsigned int max |
Definition at line 107 of file ezmlm-manage.c.
stralloc moddir = {0} |
Definition at line 92 of file ezmlm-manage.c.
stralloc modsub = {0} |
Definition at line 94 of file ezmlm-manage.c.
stralloc mydtline = {0} |
Definition at line 85 of file ezmlm-manage.c.
stralloc outhost = {0} |
Definition at line 80 of file ezmlm-manage.c.
stralloc outlocal = {0} |
Definition at line 81 of file ezmlm-manage.c.
stralloc owner = {0} |
Definition at line 98 of file ezmlm-manage.c.
stralloc qline = {0} |
Definition at line 90 of file ezmlm-manage.c.
struct qmail qq |
Definition at line 286 of file ezmlm-manage.c.
char qqbuf[1] |
Definition at line 293 of file ezmlm-manage.c.
stralloc quoted = {0} |
Definition at line 91 of file ezmlm-manage.c.
stralloc remote = {0} |
Definition at line 95 of file ezmlm-manage.c.
char* sender |
Definition at line 73 of file ezmlm-manage.c.
stralloc target = {0} |
Definition at line 86 of file ezmlm-manage.c.
stralloc text = {0} |
Definition at line 100 of file ezmlm-manage.c.
char textbuf[512] |
Definition at line 119 of file ezmlm-manage.c.
stralloc to = {0} |
Definition at line 97 of file ezmlm-manage.c.
char urlstr[] = "%00" |
Definition at line 67 of file ezmlm-manage.c.
stralloc verptarget = {0} |
Definition at line 87 of file ezmlm-manage.c.
datetime_sec when |
Definition at line 105 of file ezmlm-manage.c.
char* workdir |
Definition at line 72 of file ezmlm-manage.c.