forked from oe5hpm/openBCM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mailserv.h
63 lines (45 loc) · 1.7 KB
/
mailserv.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/***************************************************************
BayCom(R) Packet-Radio fuer IBM PC
OpenBayCom-Mailbox
----------------------------------------
Mailinglist-Server for BCM (Definitions)
----------------------------------------
Copyright (C) Johann Hanne, DH3MB, [email protected]
Falkenweg 6
D-85122 Hitzhofen
Alle Rechte vorbehalten / All Rights Reserved
***************************************************************/
#ifdef MAILSERVER
/*---------------------------------------------------------------------------*/
#define ma_creategroup 1
#define ma_deletegroup 2
#define ma_setdescription 3
#define ma_setoptions 4
#define ma_setnumber 5
#define ma_adduser 6
#define ma_deleteuser 7
#define ma_addmaintainer 8
#define ma_deletemaintainer 9
#define ma_subscribe 10
#define ma_unsubscribe 11
/*---------------------------------------------------------------------------*/
#define ma_seek_list 1
#define ma_seek_user 2
#define ma_seek_end 3
/*---------------------------------------------------------------------------*/
#define MSMODSEMA "msmod"
class mailserv
{
private:
void parse_listheader(char *line, char **name, char **number,
char **options, char **description);
char seek_group(FILE *fold, FILE *f, char what, char *parameter);
void modify_group(char what, char *listname, char *parameter);
void list_groups(void);
void show_info(char *listname, char longformat);
public:
void execute(char *command);
void examine_mail(void);
};
/*---------------------------------------------------------------------------*/
#endif