Andreas Krennmair:
[apps/madmutt.git] / remailer.h
1 #ifndef _REMAILER_H
2 #define _REMAILER_H
3
4 /*
5  * Copyright (C) 1999-2000 Thomas Roessler <roessler@does-not-exist.org>
6  * 
7  *     This program is free software; you can redistribute it and/or modify
8  *     it under the terms of the GNU General Public License as published by
9  *     the Free Software Foundation; either version 2 of the License, or
10  *     (at your option) any later version.
11  * 
12  *     This program is distributed in the hope that it will be useful,
13  *     but WITHOUT ANY WARRANTY; without even the implied warranty of
14  *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  *     GNU General Public License for more details.
16  * 
17  *     You should have received a copy of the GNU General Public License
18  *     along with this program; if not, write to the Free Software
19  *     Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
20  */ 
21
22 /*
23  * Mixmaster support for Mutt
24  */
25
26 #include "config.h"
27
28 #ifdef MIXMASTER
29
30 #define MIX_CAP_COMPRESS  (1 << 0)
31 #define MIX_CAP_MIDDLEMAN (1 << 1)
32 #define MIX_CAP_NEWSPOST  (1 << 2)
33 #define MIX_CAP_NEWSMAIL  (1 << 3)
34
35 /* Mixmaster's maximum chain length.  Don't change this. */
36
37 #define MAXMIXES 19
38
39 struct type2
40 {
41   int num;
42   char *shortname;
43   char *addr;
44   char *ver;
45   int caps;
46 };
47
48 typedef struct type2 REMAILER;
49
50
51 struct mixchain
52 {
53   size_t cl;
54   int ch[MAXMIXES];
55 };
56
57 typedef struct mixchain MIXCHAIN;
58
59 int mix_send_message (LIST *, const char *);
60 int mix_check_message (HEADER *msg);
61 void mix_make_chain (LIST **, int *);
62
63 #endif /* MIXMASTER */
64
65 #endif /* _REMAILER_H */