NeoMutt  2021-02-05-89-gabe350
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 
31 struct AddressList;
32 struct ConfigSubset;
33 struct Mailbox;
34 
35 #define MUTT_RANDTAG_LEN 16
36 
37 int mutt_bounce_message(FILE *fp, struct Mailbox *m, struct Email *e, struct AddressList *to, struct ConfigSubset *sub);
38 const char * mutt_fqdn(bool may_hide_host, const struct ConfigSubset *sub);
39 struct Content * mutt_get_content_info(const char *fname, struct Body *b, struct ConfigSubset *sub);
40 enum ContentType mutt_lookup_mime_type(struct Body *att, const char *path);
41 struct Body * mutt_make_file_attach(const char *path, struct ConfigSubset *sub);
42 struct Body * mutt_make_message_attach(struct Mailbox *m, struct Email *e, bool attach_msg, struct ConfigSubset *sub);
43 void mutt_message_to_7bit(struct Body *a, FILE *fp, struct ConfigSubset *sub);
44 void mutt_prepare_envelope(struct Envelope *env, bool final, struct ConfigSubset *sub);
45 void mutt_stamp_attachment(struct Body *a);
46 void mutt_unprepare_envelope(struct Envelope *env);
47 void mutt_update_encoding(struct Body *a, struct ConfigSubset *sub);
48 int mutt_write_fcc(const char *path, struct Email *e, const char *msgid, bool post, const char *fcc, char **finalpath, struct ConfigSubset *sub);
49 int 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 */
Envelope
The header of an Email.
Definition: envelope.h:54
Mailbox
A mailbox.
Definition: mailbox.h:81
mutt_make_message_attach
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:937
Body
The body of an email.
Definition: body.h:34
mutt_message_to_7bit
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:748
ContentType
ContentType
Content-Type.
Definition: mime.h:29
mutt_lookup_mime_type
enum ContentType mutt_lookup_mime_type(struct Body *att, const char *path)
Find the MIME type for an attachment.
Definition: sendlib.c:565
mutt_prepare_envelope
void mutt_prepare_envelope(struct Envelope *env, bool final, struct ConfigSubset *sub)
Prepare an email header.
Definition: sendlib.c:1238
mutt_fqdn
const char * mutt_fqdn(bool may_hide_host, const struct ConfigSubset *sub)
Get the Fully-Qualified Domain Name.
Definition: sendlib.c:1182
mutt_get_content_info
struct Content * mutt_get_content_info(const char *fname, struct Body *b, struct ConfigSubset *sub)
Analyze file to determine MIME encoding to use.
Definition: sendlib.c:467
lib.h
mutt_make_file_attach
struct Body * mutt_make_file_attach(const char *path, struct ConfigSubset *sub)
Create a file attachment.
Definition: sendlib.c:1083
mutt_update_encoding
void mutt_update_encoding(struct Body *a, struct ConfigSubset *sub)
Update the encoding type.
Definition: sendlib.c:905
mutt_write_fcc
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:1510
mutt_bounce_message
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:1374
Content
Info about an attachment.
Definition: content.h:33
mutt_write_multiple_fcc
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:1462
mutt_stamp_attachment
void mutt_stamp_attachment(struct Body *a)
Timestamp an Attachment.
Definition: sendlib.c:893
ConfigSubset
A set of inherited config items.
Definition: subset.h:46
Mailbox::sub
struct ConfigSubset * sub
Inherited config items.
Definition: mailbox.h:86
Email
The envelope/body of an email.
Definition: email.h:37
mutt_unprepare_envelope
void mutt_unprepare_envelope(struct Envelope *env)
Undo the encodings of mutt_prepare_envelope()
Definition: sendlib.c:1277