1 |
lefcha |
1.1 |
#include <regex.h> |
2 |
|
|
|
3 |
lefcha |
1.2 |
/* |
4 |
lefcha |
1.4 |
* "Standard" means one of FROM, TO, CC, BCC and SUBJECT which are header |
5 |
|
|
* field-names recognised as searching criteria, from an IMAP server, while |
6 |
|
|
* custom indicates any other user defined headerfield-names. |
7 |
lefcha |
1.2 |
*/ |
8 |
lefcha |
1.1 |
#define standard_filter(A, B) set_filters(A, B, 0) |
9 |
lefcha |
1.2 |
#define custom_filter(A, B) set_filters(A, B, 1) |
10 |
lefcha |
1.1 |
|
11 |
|
|
int read_config(char *cfg); |
12 |
lefcha |
1.8 |
#ifdef PERMISSIONS |
13 |
|
|
int check_perms(char *cfg); |
14 |
|
|
#endif |
15 |
lefcha |
1.1 |
int parse_config(FILE * fp); |
16 |
lefcha |
1.4 |
account_t *prepare_account(void); |
17 |
lefcha |
1.5 |
int set_account(char *line, regmatch_t * match); |
18 |
|
|
int set_filters(char *line, regmatch_t * match, int csm); |
19 |
lefcha |
1.3 |
void set_limits(char *line, regmatch_t * match); |
20 |
lefcha |
1.7 |
void set_options(char *line, regmatch_t * match); |