NeoMutt  2020-08-07-1-gab41a1
Teaching an old dog new tricks
DOXYGEN
send.h
Go to the documentation of this file.
1 
23 #ifndef MUTT_SEND_H
24 #define MUTT_SEND_H
25 
26 #include <stdbool.h>
27 #include <stdint.h>
28 #include <stdio.h>
29 
30 struct AddressList;
31 struct Body;
32 struct ConfigSubset;
33 struct Context;
34 struct Email;
35 struct EmailList;
36 struct Envelope;
37 struct Mailbox;
38 
39 typedef uint16_t SendFlags;
40 #define SEND_NO_FLAGS 0
41 #define SEND_REPLY (1 << 0)
42 #define SEND_GROUP_REPLY (1 << 1)
43 #define SEND_LIST_REPLY (1 << 2)
44 #define SEND_FORWARD (1 << 3)
45 #define SEND_POSTPONED (1 << 4)
46 #define SEND_BATCH (1 << 5)
47 #define SEND_KEY (1 << 6)
48 #define SEND_RESEND (1 << 7)
49 #define SEND_POSTPONED_FCC (1 << 8)
50 #define SEND_NO_FREE_HEADER (1 << 9)
51 #define SEND_DRAFT_FILE (1 << 10)
52 #define SEND_TO_SENDER (1 << 11)
53 #define SEND_GROUP_CHAT_REPLY (1 << 12)
54 #define SEND_NEWS (1 << 13)
55 
56 void mutt_add_to_reference_headers(struct Envelope *env, struct Envelope *curenv, struct ConfigSubset *sub);
57 struct Address *mutt_default_from(struct ConfigSubset *sub);
58 int mutt_edit_address(struct AddressList *al, const char *field, bool expand_aliases);
59 void mutt_encode_descriptions(struct Body *b, bool recurse, struct ConfigSubset *sub);
60 int mutt_fetch_recips(struct Envelope *out, struct Envelope *in, SendFlags flags, struct ConfigSubset *sub);
61 void mutt_fix_reply_recipients(struct Envelope *env, struct ConfigSubset *sub);
62 void mutt_forward_intro(struct Mailbox *m, struct Email *e, FILE *fp, struct ConfigSubset *sub);
63 void mutt_forward_trailer(struct Mailbox *m, struct Email *e, FILE *fp, struct ConfigSubset *sub);
64 void mutt_make_attribution(struct Mailbox *m, struct Email *e, FILE *fp_out, struct ConfigSubset *sub);
65 void mutt_make_forward_subject(struct Envelope *env, struct Mailbox *m, struct Email *e, struct ConfigSubset *sub);
66 void mutt_make_misc_reply_headers(struct Envelope *env, struct Envelope *curenv, struct ConfigSubset *sub);
67 void mutt_make_post_indent(struct Mailbox *m, struct Email *e, FILE *fp_out, struct ConfigSubset *sub);
68 int mutt_resend_message(FILE *fp, struct Context *ctx, struct Email *e_cur, struct ConfigSubset *sub);
69 int mutt_send_message(SendFlags flags, struct Email *e_templ, const char *tempfile, struct Context *ctx, struct EmailList *el, struct ConfigSubset *sub);
70 void mutt_set_followup_to(struct Envelope *env, struct ConfigSubset *sub);
71 
72 #endif /* MUTT_SEND_H */
The "current" mailbox.
Definition: context.h:38
void mutt_encode_descriptions(struct Body *b, bool recurse, struct ConfigSubset *sub)
rfc2047 encode the content-descriptions
Definition: send.c:1444
The envelope/body of an email.
Definition: email.h:37
void mutt_set_followup_to(struct Envelope *env, struct ConfigSubset *sub)
Set followup-to field.
Definition: send.c:1198
int mutt_send_message(SendFlags flags, struct Email *e_templ, const char *tempfile, struct Context *ctx, struct EmailList *el, struct ConfigSubset *sub)
Send an email.
Definition: send.c:1990
An email address.
Definition: address.h:34
uint16_t SendFlags
Flags for mutt_send_message(), e.g. SEND_REPLY.
Definition: send.h:37
int mutt_resend_message(FILE *fp, struct Context *ctx, struct Email *e_cur, struct ConfigSubset *sub)
Resend an email.
Definition: send.c:1503
The body of an email.
Definition: body.h:34
struct Address * mutt_default_from(struct ConfigSubset *sub)
Get a default &#39;from&#39; Address.
Definition: send.c:1323
A set of inherited config items.
Definition: subset.h:46
void mutt_add_to_reference_headers(struct Envelope *env, struct Envelope *curenv, struct ConfigSubset *sub)
Generate references for a reply email.
Definition: send.c:950
A mailbox.
Definition: mailbox.h:81
struct ConfigSubset * sub
Inherited config items.
Definition: mailbox.h:86
void mutt_make_forward_subject(struct Envelope *env, struct Mailbox *m, struct Email *e, struct ConfigSubset *sub)
Create a subject for a forwarded email.
Definition: send.c:903
void mutt_fix_reply_recipients(struct Envelope *env, struct ConfigSubset *sub)
Remove duplicate recipients.
Definition: send.c:872
int mutt_fetch_recips(struct Envelope *out, struct Envelope *in, SendFlags flags, struct ConfigSubset *sub)
Generate recpients for a reply email.
Definition: send.c:785
int mutt_edit_address(struct AddressList *al, const char *field, bool expand_aliases)
Edit an email address.
Definition: send.c:162
void mutt_forward_intro(struct Mailbox *m, struct Email *e, FILE *fp, struct ConfigSubset *sub)
Add the "start of forwarded message" text.
Definition: send.c:400
void mutt_forward_trailer(struct Mailbox *m, struct Email *e, FILE *fp, struct ConfigSubset *sub)
Add a "end of forwarded message" text.
Definition: send.c:425
void mutt_make_misc_reply_headers(struct Envelope *env, struct Envelope *curenv, struct ConfigSubset *sub)
Set subject for a reply.
Definition: send.c:923
void mutt_make_attribution(struct Mailbox *m, struct Email *e, FILE *fp_out, struct ConfigSubset *sub)
Add "on DATE, PERSON wrote" header.
Definition: send.c:580
void mutt_make_post_indent(struct Mailbox *m, struct Email *e, FILE *fp_out, struct ConfigSubset *sub)
Add suffix to replied email text.
Definition: send.c:605
The header of an Email.
Definition: envelope.h:54