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

Contents of /imapfilter/imapfilter.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations)
Sun Aug 26 19:56:50 2001 UTC (22 years, 7 months ago) by lefcha
Branch: MAIN
Changes since 1.7: +7 -5 lines
File MIME type: text/plain
Added new options.

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

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26