NeoMutt  2021-02-05-666-ge300cd
Teaching an old dog new tricks
DOXYGEN
remailer.h
Go to the documentation of this file.
1 
23 #ifndef MUTT_REMAILER_H
24 #define MUTT_REMAILER_H
25 
26 #include <stddef.h>
27 #include <stdint.h>
28 
29 struct Email;
30 struct ListHead;
31 
32 /* Mixmaster's maximum chain length. Don't change this. */
33 #define MAX_MIXES 19
34 
35 typedef uint8_t MixCapFlags;
36 #define MIX_CAP_NO_FLAGS 0
37 #define MIX_CAP_COMPRESS (1 << 0)
38 #define MIX_CAP_MIDDLEMAN (1 << 1)
39 #define MIX_CAP_NEWSPOST (1 << 2)
40 #define MIX_CAP_NEWSMAIL (1 << 3)
41 
45 struct Remailer
46 {
47  int num;
48  char *shortname;
49  char *addr;
50  char *ver;
52 };
53 
57 struct MixChain
58 {
59  size_t cl;
60  int ch[MAX_MIXES];
61 };
62 
63 int mix_send_message(struct ListHead *chain, const char *tempfile);
64 int mix_check_message(struct Email *e);
65 void dlg_select_mixmaster_chain(struct ListHead *chainhead);
66 
67 #endif /* MUTT_REMAILER_H */
The envelope/body of an email.
Definition: email.h:37
A Mixmaster chain.
Definition: remailer.h:57
int mix_check_message(struct Email *e)
Safety-check the message before passing it to mixmaster.
Definition: remailer.c:883
MixCapFlags caps
Definition: remailer.h:51
int num
Definition: remailer.h:47
uint8_t MixCapFlags
Flags, e.g. MIX_CAP_NO_FLAGS.
Definition: remailer.h:35
void dlg_select_mixmaster_chain(struct ListHead *chainhead)
Create a Mixmaster chain.
Definition: remailer.c:641
char * shortname
Definition: remailer.h:48
size_t cl
Definition: remailer.h:59
int mix_send_message(struct ListHead *chain, const char *tempfile)
Send an email via Mixmaster.
Definition: remailer.c:935
char * addr
Definition: remailer.h:49
#define MAX_MIXES
Definition: remailer.h:33
char * ver
Definition: remailer.h:50
A Mixmaster remailer.
Definition: remailer.h:45