aboutsummaryrefslogtreecommitdiffstats
path: root/signature.h
blob: 138492474cfaa026886866c3b2e1d4833fd14165 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef _ANTISPAM_SIGNATURE_H
#define _ANTISPAM_SIGNATURE_H

#include "lib.h"
#include "client.h"

#include "antispam-plugin.h"

struct siglist {
	struct siglist *next;
	char *sig;
	enum classification wanted;
};

void signature_init(void);
int signature_extract_to_list(struct mailbox_transaction_context *t,
			      struct mail *mail, struct siglist **list,
			      enum classification wanted);
int signature_extract(struct mailbox_transaction_context *t,
		      struct mail *mail, const char **signature);
void signature_list_free(struct siglist **list);

extern const char *signature_hdr;

#endif /* _ANTISPAM_SIGNATURE_H */