NeoMutt  2024-12-12-14-g7b49f7
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
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);
39char * mutt_gen_msgid (void);
40enum ContentType mutt_lookup_mime_type (struct Body *b, const char *path);
41struct Body * mutt_make_file_attach (const char *path, struct ConfigSubset *sub);
42struct Body * mutt_make_message_attach(struct Mailbox *m, struct Email *e, bool attach_msg, struct ConfigSubset *sub);
43void mutt_message_to_7bit (struct Body *b, FILE *fp, struct ConfigSubset *sub);
44void mutt_prepare_envelope (struct Envelope *env, bool final, struct ConfigSubset *sub);
45void mutt_stamp_attachment (struct Body *b);
46void mutt_unprepare_envelope (struct Envelope *env);
47void mutt_update_encoding (struct Body *b, struct ConfigSubset *sub);
48int mutt_write_fcc (const char *path, struct Email *e, const char *msgid, bool post, const char *fcc, char **finalpath, struct ConfigSubset *sub);
49int mutt_write_multiple_fcc (const char *path, struct Email *e, const char *msgid, bool post, char *fcc, char **finalpath, struct ConfigSubset *sub);
50
51#endif /* MUTT_SEND_SENDLIB_H */
Structs that make up an email.
ContentType
Content-Type.
Definition: mime.h:30
void mutt_update_encoding(struct Body *b, struct ConfigSubset *sub)
Update the encoding type.
Definition: sendlib.c:422
const char * mutt_fqdn(bool may_hide_host, const struct ConfigSubset *sub)
Get the Fully-Qualified Domain Name.
Definition: sendlib.c:707
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:917
enum ContentType mutt_lookup_mime_type(struct Body *b, const char *path)
Find the MIME type for an attachment.
Definition: sendlib.c:76
struct Body * mutt_make_file_attach(const char *path, struct ConfigSubset *sub)
Create a file attachment.
Definition: sendlib.c:607
char * mutt_gen_msgid(void)
Generate a random Message ID.
Definition: sendlib.c:753
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:1005
void mutt_unprepare_envelope(struct Envelope *env)
Undo the encodings of mutt_prepare_envelope()
Definition: sendlib.c:819
void mutt_prepare_envelope(struct Envelope *env, bool final, struct ConfigSubset *sub)
Prepare an email header.
Definition: sendlib.c:780
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:454
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:1058
void mutt_message_to_7bit(struct Body *b, FILE *fp, struct ConfigSubset *sub)
Convert an email's MIME parts to 7-bit.
Definition: sendlib.c:259
void mutt_stamp_attachment(struct Body *b)
Timestamp an Attachment.
Definition: sendlib.c:410
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:39
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