NeoMutt
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
remailer.h
Go to the documentation of this file.
1
23#ifndef MUTT_MIXMASTER_REMAILER_H
24#define MUTT_MIXMASTER_REMAILER_H
25
26#include <stdint.h>
27#include "mutt/lib.h"
28
29typedef uint8_t MixCapFlags;
30#define MIX_CAP_NO_FLAGS 0
31#define MIX_CAP_COMPRESS (1 << 0)
32#define MIX_CAP_MIDDLEMAN (1 << 1)
33#define MIX_CAP_NEWSPOST (1 << 2)
34#define MIX_CAP_NEWSMAIL (1 << 3)
35
40{
41 int num;
42 char *shortname;
43 char *addr;
44 char *ver;
46};
47ARRAY_HEAD(RemailerArray, struct Remailer *);
48
49void remailer_free(struct Remailer **ptr);
50struct Remailer *remailer_new (void);
51
52void remailer_clear_hosts(struct RemailerArray *ra);
53struct RemailerArray remailer_get_hosts(void);
54
55#endif /* MUTT_MIXMASTER_REMAILER_H */
#define ARRAY_HEAD(name, type)
Define a named struct for arrays of elements of a certain type.
Definition: array.h:46
Convenience wrapper for the library headers.
struct RemailerArray remailer_get_hosts(void)
Parse the type2.list as given by mixmaster -T.
Definition: remailer.c:114
void remailer_clear_hosts(struct RemailerArray *ra)
Clear a Remailer List.
Definition: remailer.c:205
struct Remailer * remailer_new(void)
Create a new Remailer.
Definition: remailer.c:62
void remailer_free(struct Remailer **ptr)
Free a Remailer.
Definition: remailer.c:45
uint8_t MixCapFlags
Flags, e.g. MIX_CAP_NO_FLAGS.
Definition: remailer.h:29
A Mixmaster remailer.
Definition: remailer.h:40
int num
Index number.
Definition: remailer.h:41
char * addr
Address of host.
Definition: remailer.h:43
char * shortname
Short name of remailer host.
Definition: remailer.h:42
MixCapFlags caps
Capabilities of host.
Definition: remailer.h:45
char * ver
Version of host.
Definition: remailer.h:44