ezmlmx 0.68
ezmlmx
Loading...
Searching...
No Matches
subscribe.h
Go to the documentation of this file.
1/*$Id: subscribe.h 216 2005-01-12 21:39:26Z bruce $*/
2#ifndef SUBSCRIBE_H
3#define SUBSCRIBE_H
4
5#include "stralloc.h"
6
7/* these are the subroutines used for interfacing with the subscriber and */
8/* moderator address databases. For the put/to address output routines */
9/* the 'username' if defined is omitted from the output. flagadd = 1 adds */
10/* a subscriber, flagadd = 0 removes the address. To use e.g. a SQL data- */
11/* base for addresses, just replace these routines and rebuild ezmlm. */
12
13extern int subscribe(const char *dir,
14 const char *username,
15 int flagadd,
16 const char *from,
17 const char *event,
18 int flagmysql,
19 int forcehash,
20 const char *table_override);
21
22extern const char *issub(const char *dir,
23 const char *username,
24 const char *table_override);
25
26extern unsigned long putsubs(const char *dir,
27 unsigned long hash_lo,
28 unsigned long hash_hi,
29 int subwrite(),
30 int flagsql);
31
32/* int subwrite(char *string, unsigned int length); */
33
34extern void tagmsg(const char *dir,
35 unsigned long msgnum,
36 const char *seed,
37 const char *action,
38 char *hashout,
39 unsigned long bodysize,
40 unsigned long chunk);
41
42extern const char *loginfo(const char *dir,
43 unsigned long msgnum,
44 unsigned long,
45 unsigned long subs,
46 int done);
47
48extern const char *checktag(const char *dir,
49 unsigned long msgnum,
50 unsigned long listno,
51 const char *action,
52 const char *seed,
53 const char *hash);
54
55extern void searchlog(const char *dir,
56 char *search,
57 int subwrite());
58
59extern const char *opensql(const char *dir,const char **table);
60
61extern void closesql(void);
62
63#endif
int issub()
Returns (char *) to match if userhost is in the subscriber database dbname, 0 otherwise....
const char * loginfo(const char *dir, unsigned long msgnum, unsigned long, unsigned long subs, int done)
Definition loginfo.c:12
void tagmsg(const char *dir, unsigned long msgnum, const char *seed, const char *action, char *hashout, unsigned long bodysize, unsigned long chunk)
Definition tagmsg.c:45
void closesql(void)
close connection to SQL server, if open
Definition opensql.c:21
const char * opensql(const char *dir, const char **table)
Definition opensql.c:13
unsigned long putsubs(const char *dir, unsigned long hash_lo, unsigned long hash_hi, int subwrite(), int flagsql)
Definition putsubs.c:49
int subscribe(const char *dir, const char *username, int flagadd, const char *from, const char *event, int flagmysql, int forcehash, const char *table_override)
Definition subscribe.c:76
void searchlog(const char *dir, char *search, int subwrite())
Definition searchlog.c:60
const char * checktag(const char *dir, unsigned long msgnum, unsigned long listno, const char *action, const char *seed, const char *hash)
Definition checktag.c:27
stralloc listno
Definition ezmlm-get.c:78
stralloc seed
Definition ezmlm-get.c:74
char hashout[COOKIE]
Definition ezmlm-get.c:90
char * dir
stralloc from
unsigned long hash_lo
Definition ezmlm-send.c:87
unsigned long hash_hi
Definition ezmlm-send.c:88
unsigned long msgnum
int subwrite(char *s, unsigned int l)
Definition ezmlm-list.c:29
stralloc action
Definition ezmlm-store.c:84