1 |
lefcha |
1.1 |
#include <regex.h> |
2 |
|
|
|
3 |
lefcha |
1.2 |
/* |
4 |
|
|
* "Standard" means one of FROM, TO, CC, BCC and SUBJECT which are |
5 |
|
|
* header field-names recognised as searching criteria, from an |
6 |
|
|
* IMAP server. Custom any other user defined header field-names. |
7 |
|
|
*/ |
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 |
|
|
int parse_config(FILE * fp); |
13 |
|
|
void set_account(char *line, regmatch_t * match); |
14 |
lefcha |
1.2 |
void set_filters(char *line, regmatch_t * match, int custom); |