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

Annotation of /imapfilter/imapfilter.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (hide 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 lefcha 1.1 /* Flags that control the program options that have been selected. */
2 lefcha 1.6 #define OPT_TEST_MODE 0x00000001
3 lefcha 1.8 #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 lefcha 1.1
11     /* Lengths of strings to save account settings. */
12     #define SERVER_MAX 128
13 lefcha 1.6 #define USERID_MAX 64
14     #define PASSWD_MAX 32
15 lefcha 1.1
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 lefcha 1.6 typedef struct account {
25 lefcha 1.1 char server[SERVER_MAX]; /* Hostname of mail server. */
26     unsigned short int port; /* Port to connect. */
27 lefcha 1.7 char userid[USERID_MAX]; /* Username. */
28     char passwd[PASSWD_MAX]; /* Password. */
29     struct account *next; /* Next node of linked list. */
30 lefcha 1.6 } account_t;
31 lefcha 1.1
32     /* A header filter entry. */
33 lefcha 1.6 typedef struct filter {
34 lefcha 1.1 char name[FIELD_NAME_MAX]; /* Header field name. */
35 lefcha 1.2 int custom; /* If field name one of FROM, TO,
36     CC, BCC, SUBJECT then zero. */
37 lefcha 1.1 char body[FIELD_BODY_MAX]; /* Header field body. */
38 lefcha 1.7 struct filter *next; /* Next node of linked list. */
39 lefcha 1.6 } filter_t;
40 lefcha 1.1
41    
42     void apply_filters(void);
43 lefcha 1.2 void usage(void);

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26