/[imapfilter]/imapfilter/imapfilter.h
ViewVC logotype

Annotation of /imapfilter/imapfilter.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (hide annotations)
Sun Aug 26 01:18:24 2001 UTC (22 years, 8 months ago) by lefcha
Branch: MAIN
Changes since 1.5: +16 -27 lines
File MIME type: text/plain
Structural changes

1 lefcha 1.1 /* Flags that control the program options that have been selected. */
2 lefcha 1.6 #define OPT_TEST_MODE 0x00000001
3     #define OPT_DETAILS_QUITE 0x00000002
4     #define OPT_DETAILS_NORMAL 0x00000004
5     #define OPT_DETAILS_VERBOSE 0x00000008
6     #define OPT_SHOW_HEADERS 0x00000010
7     #define OPT_DETAILS_CLEAR 0xFFFFFFF1
8 lefcha 1.1
9     /* Lengths of strings to save account settings. */
10     #define SERVER_MAX 128
11 lefcha 1.6 #define USERID_MAX 64
12     #define PASSWD_MAX 32
13 lefcha 1.1
14     /* Lengths of strings that comprise the HEADER of a filter. */
15     #define FIELD_NAME_MAX 64
16     #define FIELD_BODY_MAX 512
17    
18     #define min(A, B) ((A) < (B) ? (A) : (B))
19    
20    
21     /* Account settings. */
22 lefcha 1.6 typedef struct account {
23 lefcha 1.1 char server[SERVER_MAX]; /* Hostname of mail server. */
24     unsigned short int port; /* Port to connect. */
25 lefcha 1.6 char userid[USERID_MAX];
26     char passwd[PASSWD_MAX];
27     struct account *next;
28     } account_t;
29 lefcha 1.1
30     /* A header filter entry. */
31 lefcha 1.6 typedef struct filter {
32 lefcha 1.1 char name[FIELD_NAME_MAX]; /* Header field name. */
33 lefcha 1.2 int custom; /* If field name one of FROM, TO,
34     CC, BCC, SUBJECT then zero. */
35 lefcha 1.1 char body[FIELD_BODY_MAX]; /* Header field body. */
36 lefcha 1.6 struct filter *next;
37     } filter_t;
38 lefcha 1.1
39    
40     void apply_filters(void);
41 lefcha 1.2 void usage(void);

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26