NeoMutt  2020-08-07-1-gab41a1
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 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 */
The envelope/body of an email.
Definition: email.h:37
Structs that make up an email.
void mutt_unprepare_envelope(struct Envelope *env)
Undo the encodings of mutt_prepare_envelope()
Definition: sendlib.c:1276
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:935
enum ContentType mutt_lookup_mime_type(struct Body *att, const char *path)
Find the MIME type for an attachment.
Definition: sendlib.c:563
The body of an email.
Definition: body.h:34
const char * mutt_fqdn(bool may_hide_host, const struct ConfigSubset *sub)
Get the Fully-Qualified Domain Name.
Definition: sendlib.c:1181
void mutt_message_to_7bit(struct Body *a, FILE *fp, struct ConfigSubset *sub)
Convert an email&#39;s MIME parts to 7-bit.
Definition: sendlib.c:746
Info about an attachment.
Definition: content.h:33
A set of inherited config items.
Definition: subset.h:46
A mailbox.
Definition: mailbox.h:81
struct ConfigSubset * sub
Inherited config items.
Definition: mailbox.h:86
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:1507
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:466
int mutt_bounce_message(FILE *fp, struct Email *e, struct AddressList *to, struct ConfigSubset *sub)
Bounce an email message.
Definition: sendlib.c:1371
void mutt_prepare_envelope(struct Envelope *env, bool final, struct ConfigSubset *sub)
Prepare an email header.
Definition: sendlib.c:1237
struct Body * mutt_make_file_attach(const char *path, struct ConfigSubset *sub)
Create a file attachment.
Definition: sendlib.c:1082
void mutt_update_encoding(struct Body *a, struct ConfigSubset *sub)
Update the encoding type.
Definition: sendlib.c:903
void mutt_stamp_attachment(struct Body *a)
Timestamp an Attachment.
Definition: sendlib.c:891
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:1459
The header of an Email.
Definition: envelope.h:54
ContentType
Content-Type.
Definition: mime.h:29