NeoMutt  2024-04-25-85-g27bab4
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
55{
60};
61
62void remailer_free(struct Remailer **ptr);
63struct Remailer *remailer_new (void);
64
65void remailer_clear_hosts(struct RemailerArray *ra);
66struct RemailerArray remailer_get_hosts(void);
67
68#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:47
Convenience wrapper for the library headers.
struct RemailerArray remailer_get_hosts(void)
Parse the type2.list as given by mixmaster -T.
Definition: remailer.c:115
void remailer_clear_hosts(struct RemailerArray *ra)
Clear a Remailer List.
Definition: remailer.c:206
ExpandoDataMixmaster
Expando UIDs for Mixmaster.
Definition: remailer.h:55
@ ED_MIX_ADDRESS
Remailer.addr.
Definition: remailer.h:56
@ ED_MIX_CAPABILITIES
Remailer, mix_format_caps()
Definition: remailer.h:57
@ ED_MIX_SHORT_NAME
Remailer.shortname.
Definition: remailer.h:59
@ ED_MIX_NUMBER
Remailer.num.
Definition: remailer.h:58
struct Remailer * remailer_new(void)
Create a new Remailer.
Definition: remailer.c:63
void remailer_free(struct Remailer **ptr)
Free a Remailer.
Definition: remailer.c:46
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