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 #ifdef MIXMASTER
27
28 #define MIX_CAP_COMPRESS  (1 << 0)
29 #define MIX_CAP_MIDDLEMAN (1 << 1)
30 #define MIX_CAP_NEWSPOST  (1 << 2)
31 #define MIX_CAP_NEWSMAIL  (1 << 3)
32
33 /* Mixmaster's maximum chain length.  Don't change this. */
34
35 #define MAXMIXES 19
36
37 struct type2 {
38   int num;
39   char *shortname;
40   char *addr;
41   char *ver;
42   int caps;
43 };
44
45 typedef struct type2 REMAILER;
46
47
48 struct mixchain {
49   size_t cl;
50   int ch[MAXMIXES];
51 };
52
53 typedef struct mixchain MIXCHAIN;
54
55 int mix_send_message (LIST *, const char *);
56 int mix_check_message (HEADER * msg);
57 void mix_make_chain (LIST **, int *);
58
59 #endif /* MIXMASTER */
60
61 #endif /* _REMAILER_H */