NeoMutt  2022-04-29-215-gc12b98
Teaching an old dog new tricks
DOXYGEN
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
30struct Body;
31struct ConfigSubset;
32struct Envelope;
33struct ListHead;
34
39{
45};
46
47int mutt_rfc822_write_header(FILE *fp, struct Envelope *env, struct Body *attach, enum MuttWriteHeaderMode mode, bool privacy, bool hide_protected_subject, struct ConfigSubset *sub);
48int mutt_write_mime_header(struct Body *a, FILE *fp, struct ConfigSubset *sub);
49int mutt_write_one_header(FILE *fp, const char *tag, const char *value, const char *pfx, int wraplen, CopyHeaderFlags chflags, struct ConfigSubset *sub);
50void mutt_write_references(const struct ListHead *r, FILE *fp, size_t trim);
51
52#endif /* MUTT_SEND_HEADER_H */
Duplicate the structure of an entire email.
uint32_t CopyHeaderFlags
Flags for mutt_copy_header(), e.g. CH_UPDATE.
Definition: copy.h:50
int mutt_rfc822_write_header(FILE *fp, struct Envelope *env, struct Body *attach, enum MuttWriteHeaderMode mode, bool privacy, bool hide_protected_subject, struct ConfigSubset *sub)
Write out one RFC822 header line.
Definition: header.c:572
MuttWriteHeaderMode
Modes for mutt_rfc822_write_header()
Definition: header.h:39
@ MUTT_WRITE_HEADER_FCC
fcc mode, like normal mode but for Bcc header
Definition: header.h:41
@ MUTT_WRITE_HEADER_MIME
Write protected headers.
Definition: header.h:44
@ MUTT_WRITE_HEADER_NORMAL
A normal Email, write full header + MIME headers.
Definition: header.h:40
@ MUTT_WRITE_HEADER_POSTPONE
A postponed Email, just the envelope info.
Definition: header.h:42
@ MUTT_WRITE_HEADER_EDITHDRS
"light" mode (used for edit_hdrs)
Definition: header.h:43
int mutt_write_mime_header(struct Body *a, FILE *fp, struct ConfigSubset *sub)
Create a MIME header.
Definition: header.c:760
void mutt_write_references(const struct ListHead *r, FILE *fp, size_t trim)
Add the message references to a list.
Definition: header.c:514
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:420
The body of an email.
Definition: body.h:36
A set of inherited config items.
Definition: subset.h:47
The header of an Email.
Definition: envelope.h:57