NeoMutt  2024-04-25-89-g194907
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
send.h
Go to the documentation of this file.
1
25#ifndef MUTT_SEND_SEND_H
26#define MUTT_SEND_SEND_H
27
28#include <stdbool.h>
29#include <stdint.h>
30#include <stdio.h>
31
32struct AddressList;
33struct Body;
34struct ConfigSubset;
35struct Email;
36struct EmailArray;
37struct Envelope;
38struct Mailbox;
39
40typedef uint32_t SendFlags;
41#define SEND_NO_FLAGS 0
42#define SEND_REPLY (1 << 0)
43#define SEND_GROUP_REPLY (1 << 1)
44#define SEND_LIST_REPLY (1 << 2)
45#define SEND_FORWARD (1 << 3)
46#define SEND_POSTPONED (1 << 4)
47#define SEND_BATCH (1 << 5)
48#define SEND_KEY (1 << 6)
49#define SEND_RESEND (1 << 7)
50#define SEND_POSTPONED_FCC (1 << 8)
51#define SEND_NO_FREE_HEADER (1 << 9)
52#define SEND_DRAFT_FILE (1 << 10)
53#define SEND_TO_SENDER (1 << 11)
54#define SEND_GROUP_CHAT_REPLY (1 << 12)
55#define SEND_NEWS (1 << 13)
56#define SEND_REVIEW_TO (1 << 14)
57#define SEND_CONSUMED_STDIN (1 << 15)
58#define SEND_CLI_CRYPTO (1 << 16)
59
60void mutt_add_to_reference_headers(struct Envelope *env, struct Envelope *env_cur, struct ConfigSubset *sub);
61struct Address *mutt_default_from(struct ConfigSubset *sub);
62int mutt_edit_address(struct AddressList *al, const char *field, bool expand_aliases);
63void mutt_encode_descriptions(struct Body *b, bool recurse, struct ConfigSubset *sub);
64int mutt_fetch_recips(struct Envelope *out, struct Envelope *in, SendFlags flags, struct ConfigSubset *sub);
65void mutt_fix_reply_recipients(struct Envelope *env, struct ConfigSubset *sub);
66void mutt_forward_intro(struct Email *e, FILE *fp, struct ConfigSubset *sub);
67void mutt_forward_trailer(struct Email *e, FILE *fp, struct ConfigSubset *sub);
68void mutt_make_attribution_intro(struct Email *e, FILE *fp_out, struct ConfigSubset *sub);
69void mutt_make_attribution_trailer(struct Email *e, FILE *fp_out, struct ConfigSubset *sub);
70void mutt_make_forward_subject(struct Envelope *env, struct Email *e, struct ConfigSubset *sub);
71void mutt_make_misc_reply_headers(struct Envelope *env, struct Envelope *env_cur, struct ConfigSubset *sub);
72int mutt_resend_message(FILE *fp, struct Mailbox *m, struct Email *e_cur, struct ConfigSubset *sub);
73int mutt_send_message(SendFlags flags, struct Email *e_templ, const char *tempfile, struct Mailbox *m, struct EmailArray *ea, struct ConfigSubset *sub);
74void mutt_set_followup_to(struct Envelope *env, struct ConfigSubset *sub);
75bool mutt_send_list_subscribe(struct Mailbox *m, struct Email *e);
76bool mutt_send_list_unsubscribe(struct Mailbox *m, struct Email *e);
77
78#endif /* MUTT_SEND_SEND_H */
void mutt_make_misc_reply_headers(struct Envelope *env, struct Envelope *env_cur, struct ConfigSubset *sub)
Set subject for a reply.
Definition: send.c:1072
void mutt_encode_descriptions(struct Body *b, bool recurse, struct ConfigSubset *sub)
RFC2047 encode the content-descriptions.
Definition: send.c:1571
void mutt_make_attribution_intro(struct Email *e, FILE *fp_out, struct ConfigSubset *sub)
Add "on DATE, PERSON wrote" header.
Definition: send.c:663
int mutt_edit_address(struct AddressList *al, const char *field, bool expand_aliases)
Edit an email address.
Definition: send.c:194
uint32_t SendFlags
Flags for mutt_send_message(), e.g. SEND_REPLY.
Definition: send.h:40
void mutt_forward_intro(struct Email *e, FILE *fp, struct ConfigSubset *sub)
Add the "start of forwarded message" text.
Definition: send.c:455
void mutt_make_forward_subject(struct Envelope *env, struct Email *e, struct ConfigSubset *sub)
Create a subject for a forwarded email.
Definition: send.c:1052
void mutt_fix_reply_recipients(struct Envelope *env, struct ConfigSubset *sub)
Remove duplicate recipients.
Definition: send.c:1022
int mutt_resend_message(FILE *fp, struct Mailbox *m, struct Email *e_cur, struct ConfigSubset *sub)
Resend an email.
Definition: send.c:1631
int mutt_fetch_recips(struct Envelope *out, struct Envelope *in, SendFlags flags, struct ConfigSubset *sub)
Generate recpients for a reply email.
Definition: send.c:939
struct Address * mutt_default_from(struct ConfigSubset *sub)
Get a default 'from' Address.
Definition: send.c:1461
bool mutt_send_list_unsubscribe(struct Mailbox *m, struct Email *e)
Send a mailing-list unsubscription email.
Definition: send.c:3053
void mutt_forward_trailer(struct Email *e, FILE *fp, struct ConfigSubset *sub)
Add a "end of forwarded message" text.
Definition: send.c:479
int mutt_send_message(SendFlags flags, struct Email *e_templ, const char *tempfile, struct Mailbox *m, struct EmailArray *ea, struct ConfigSubset *sub)
Send an email.
Definition: send.c:2116
bool mutt_send_list_subscribe(struct Mailbox *m, struct Email *e)
Send a mailing-list subscription email.
Definition: send.c:3024
void mutt_make_attribution_trailer(struct Email *e, FILE *fp_out, struct ConfigSubset *sub)
Add suffix to replied email text.
Definition: send.c:674
void mutt_set_followup_to(struct Envelope *env, struct ConfigSubset *sub)
Set followup-to field.
Definition: send.c:1337
void mutt_add_to_reference_headers(struct Envelope *env, struct Envelope *env_cur, struct ConfigSubset *sub)
Generate references for a reply email.
Definition: send.c:1100
An email address.
Definition: address.h:36
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