NeoMutt  2024-04-16-36-g75b6fb
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);
39enum ContentType mutt_lookup_mime_type (struct Body *b, 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 *b, FILE *fp, struct ConfigSubset *sub);
43void mutt_prepare_envelope (struct Envelope *env, bool final, struct ConfigSubset *sub);
44void mutt_stamp_attachment (struct Body *b);
45void mutt_unprepare_envelope (struct Envelope *env);
46void mutt_update_encoding (struct Body *b, 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_update_encoding(struct Body *b, struct ConfigSubset *sub)
Update the encoding type.
Definition: sendlib.c:421
const char * mutt_fqdn(bool may_hide_host, const struct ConfigSubset *sub)
Get the Fully-Qualified Domain Name.
Definition: sendlib.c:706
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:916
enum ContentType mutt_lookup_mime_type(struct Body *b, const char *path)
Find the MIME type for an attachment.
Definition: sendlib.c:75
struct Body * mutt_make_file_attach(const char *path, struct ConfigSubset *sub)
Create a file attachment.
Definition: sendlib.c:606
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:1004
void mutt_unprepare_envelope(struct Envelope *env)
Undo the encodings of mutt_prepare_envelope()
Definition: sendlib.c:818
void mutt_prepare_envelope(struct Envelope *env, bool final, struct ConfigSubset *sub)
Prepare an email header.
Definition: sendlib.c:779
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:453
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:1052
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:258
void mutt_stamp_attachment(struct Body *b)
Timestamp an Attachment.
Definition: sendlib.c:409
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