NeoMutt
2024-10-02-37-gfa9146
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
header.h
Go to the documentation of this file.
1
23
#ifndef MUTT_SEND_HEADER_H
24
#define MUTT_SEND_HEADER_H
25
26
#include <stdbool.h>
27
#include <stdio.h>
28
#include "
copy.h
"
29
30
struct
Body
;
31
struct
ConfigSubset
;
32
struct
Envelope
;
33
struct
ListHead;
34
38
enum
MuttWriteHeaderMode
39
{
40
MUTT_WRITE_HEADER_NORMAL
,
41
MUTT_WRITE_HEADER_FCC
,
42
MUTT_WRITE_HEADER_POSTPONE
,
43
MUTT_WRITE_HEADER_EDITHDRS
,
44
MUTT_WRITE_HEADER_MIME
,
45
};
46
47
int
mutt_rfc822_write_header
(FILE *fp,
struct
Envelope
*env,
struct
Body
*b,
enum
MuttWriteHeaderMode
mode,
bool
privacy,
bool
hide_protected_subject,
struct
ConfigSubset
*sub);
48
int
mutt_write_mime_header
(
struct
Body
*b, FILE *fp,
struct
ConfigSubset
*sub);
49
int
mutt_write_one_header
(FILE *fp,
const
char
*tag,
const
char
*value,
const
char
*pfx,
int
wraplen,
CopyHeaderFlags
chflags,
struct
ConfigSubset
*sub);
50
void
mutt_write_references
(
const
struct
ListHead *r, FILE *fp,
size_t
trim);
51
52
#endif
/* MUTT_SEND_HEADER_H */
copy.h
Duplicate the structure of an entire email.
CopyHeaderFlags
uint32_t CopyHeaderFlags
Flags for mutt_copy_header(), e.g. CH_UPDATE.
Definition:
copy.h:52
mutt_rfc822_write_header
int mutt_rfc822_write_header(FILE *fp, struct Envelope *env, struct Body *b, enum MuttWriteHeaderMode mode, bool privacy, bool hide_protected_subject, struct ConfigSubset *sub)
Write out one RFC822 header line.
Definition:
header.c:577
MuttWriteHeaderMode
MuttWriteHeaderMode
Modes for mutt_rfc822_write_header()
Definition:
header.h:39
MUTT_WRITE_HEADER_FCC
@ MUTT_WRITE_HEADER_FCC
fcc mode, like normal mode but for Bcc header
Definition:
header.h:41
MUTT_WRITE_HEADER_MIME
@ MUTT_WRITE_HEADER_MIME
Write protected headers.
Definition:
header.h:44
MUTT_WRITE_HEADER_NORMAL
@ MUTT_WRITE_HEADER_NORMAL
A normal Email, write full header + MIME headers.
Definition:
header.h:40
MUTT_WRITE_HEADER_POSTPONE
@ MUTT_WRITE_HEADER_POSTPONE
A postponed Email, just the envelope info.
Definition:
header.h:42
MUTT_WRITE_HEADER_EDITHDRS
@ MUTT_WRITE_HEADER_EDITHDRS
"light" mode (used for edit_hdrs)
Definition:
header.h:43
mutt_write_mime_header
int mutt_write_mime_header(struct Body *b, FILE *fp, struct ConfigSubset *sub)
Create a MIME header.
Definition:
header.c:756
mutt_write_references
void mutt_write_references(const struct ListHead *r, FILE *fp, size_t trim)
Add the message references to a list.
Definition:
header.c:519
mutt_write_one_header
int mutt_write_one_header(FILE *fp, const char *tag, const char *value, const char *pfx, int wraplen, CopyHeaderFlags chflags, struct ConfigSubset *sub)
Write one header line to a file.
Definition:
header.c:423
Body
The body of an email.
Definition:
body.h:36
ConfigSubset
A set of inherited config items.
Definition:
subset.h:47
Envelope
The header of an Email.
Definition:
envelope.h:57