-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmailrc.h
59 lines (44 loc) · 1.27 KB
/
mailrc.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
/*
* @(#)mailrc.h 1.8 6/11/96
*
* (c) Copyright 1993-1995 by Mark Grant, and by other
* authors as appropriate. All right reserved.
*
* The authors assume no liability for damages resulting from the
* use of this software, even if the damage results from defects in
* this software. No warranty is expressed or implied.
*
* This software is being distributed under the GNU Public Licence,
* see the file COPYING for more details.
*
* - Mark Grant ([email protected]) 29/6/94
*
* Added MAX_EXTRA_HEADERLINES
* - Anders Baekgaard ([email protected]) 10th August 1995
*/
typedef struct _entry {
struct _entry *next;
struct _entry *prev;
char *name;
char *value;
int32 flags;
} MAILRC;
#define MAILRC_PREFIXED 0x0001
#define MAILRC_OURPREF 0x0002
#define MAX_EXTRA_HEADERLINES 10
extern MAILRC *new_mailrc(void);
extern void free_mailrc(MAILRC *m);
extern char *find_pgpkey(char *s);
extern char *find_alias(char *s);
extern char *find_mailrc(char *s);
extern void replace_mailrc(char *s, char *v);
extern void remove_mailrc(char *s);
extern void remove_retain(char *s);
typedef struct {
MAILRC *start;
MAILRC *end;
int32 number;
} LIST;
extern void add_to_list(LIST *l, MAILRC *m);
extern void add_entry(LIST *l, char *s);
extern void print_list(LIST *l);