NeoMutt  2022-04-29-215-gc12b98
Teaching an old dog new tricks
DOXYGEN
sendlib.h
Go to the documentation of this file.
1
24#ifndef MUTT_SEND_SENDLIB_H
25#define MUTT_SEND_SENDLIB_H
26
27#include <stdbool.h>
28#include <stdio.h>
29#include "email/lib.h"
30
31struct AddressList;
32struct ConfigSubset;
33struct Mailbox;
34
35#define MUTT_RANDTAG_LEN 16
36
37int mutt_bounce_message(FILE *fp, struct Mailbox *m, struct Email *e, struct AddressList *to, struct ConfigSubset *sub);
38const char * mutt_fqdn(bool may_hide_host, const struct ConfigSubset *sub);
39enum ContentType mutt_lookup_mime_type(struct Body *att, const char *path);
40struct Body * mutt_make_file_attach(const char *path, struct ConfigSubset *sub);
41struct Body * mutt_make_message_attach(struct Mailbox *m, struct Email *e, bool attach_msg, struct ConfigSubset *sub);
42void mutt_message_to_7bit(struct Body *a, FILE *fp, struct ConfigSubset *sub);
43void mutt_prepare_envelope(struct Envelope *env, bool final, struct ConfigSubset *sub);
44void mutt_stamp_attachment(struct Body *a);
45void mutt_unprepare_envelope(struct Envelope *env);
46void mutt_update_encoding(struct Body *a, struct ConfigSubset *sub);
47int mutt_write_fcc(const char *path, struct Email *e, const char *msgid, bool post, const char *fcc, char **finalpath, struct ConfigSubset *sub);
48int mutt_write_multiple_fcc(const char *path, struct Email *e, const char *msgid, bool post, char *fcc, char **finalpath, struct ConfigSubset *sub);
49
50#endif /* MUTT_SEND_SENDLIB_H */
Structs that make up an email.
ContentType
Content-Type.
Definition: mime.h:30
void mutt_stamp_attachment(struct Body *a)
Timestamp an Attachment.
Definition: sendlib.c:401
enum ContentType mutt_lookup_mime_type(struct Body *att, const char *path)
Find the MIME type for an attachment.
Definition: sendlib.c:71
const char * mutt_fqdn(bool may_hide_host, const struct ConfigSubset *sub)
Get the Fully-Qualified Domain Name.
Definition: sendlib.c:698
int mutt_bounce_message(FILE *fp, struct Mailbox *m, struct Email *e, struct AddressList *to, struct ConfigSubset *sub)
Bounce an email message.
Definition: sendlib.c:894
struct Body * mutt_make_file_attach(const char *path, struct ConfigSubset *sub)
Create a file attachment.
Definition: sendlib.c:598
int mutt_write_multiple_fcc(const char *path, struct Email *e, const char *msgid, bool post, char *fcc, char **finalpath, struct ConfigSubset *sub)
Handle FCC with multiple, comma separated entries.
Definition: sendlib.c:982
void mutt_message_to_7bit(struct Body *a, FILE *fp, struct ConfigSubset *sub)
Convert an email's MIME parts to 7-bit.
Definition: sendlib.c:254
void mutt_unprepare_envelope(struct Envelope *env)
Undo the encodings of mutt_prepare_envelope()
Definition: sendlib.c:793
void mutt_prepare_envelope(struct Envelope *env, bool final, struct ConfigSubset *sub)
Prepare an email header.
Definition: sendlib.c:754
struct Body * mutt_make_message_attach(struct Mailbox *m, struct Email *e, bool attach_msg, struct ConfigSubset *sub)
Create a message attachment.
Definition: sendlib.c:445
int mutt_write_fcc(const char *path, struct Email *e, const char *msgid, bool post, const char *fcc, char **finalpath, struct ConfigSubset *sub)
Write email to FCC mailbox.
Definition: sendlib.c:1030
void mutt_update_encoding(struct Body *a, struct ConfigSubset *sub)
Update the encoding type.
Definition: sendlib.c:413
The body of an email.
Definition: body.h:36
A set of inherited config items.
Definition: subset.h:47
The envelope/body of an email.
Definition: email.h:37
The header of an Email.
Definition: envelope.h:57
A mailbox.
Definition: mailbox.h:79
struct ConfigSubset * sub
Inherited config items.
Definition: mailbox.h:83