move rfc822 related types into lib-mime/mime-types.h out of mutt.h.
[apps/madmutt.git] / remailer.h
1 /*
2  * Copyright notice from original mutt:
3  * Copyright (C) 1999-2000 Thomas Roessler <roessler@does-not-exist.org>
4  *
5  * This file is part of mutt-ng, see http://www.muttng.org/.
6  * It's licensed under the GNU General Public License,
7  * please see the file GPL in the top level source directory.
8  */
9
10 /*
11  * Mixmaster support for Mutt
12  */
13
14 #ifndef _REMAILER_H
15 #define _REMAILER_H
16
17 #ifdef MIXMASTER
18
19 #define MIX_CAP_COMPRESS  (1 << 0)
20 #define MIX_CAP_MIDDLEMAN (1 << 1)
21 #define MIX_CAP_NEWSPOST  (1 << 2)
22 #define MIX_CAP_NEWSMAIL  (1 << 3)
23
24 /* Mixmaster's maximum chain length.  Don't change this. */
25
26 #define MAXMIXES 19
27
28 struct type2 {
29   int num;
30   char *shortname;
31   char *addr;
32   char *ver;
33   int caps;
34 };
35
36 typedef struct type2 REMAILER;
37
38
39 struct mixchain {
40   size_t cl;
41   int ch[MAXMIXES];
42 };
43
44 typedef struct mixchain MIXCHAIN;
45
46 int mix_send_message (LIST *, const char *);
47 int mix_check_message (HEADER * msg);
48 void mix_make_chain (LIST **, int *);
49
50 #endif /* MIXMASTER */
51
52 #endif /* _REMAILER_H */