Prepare and send an email. More...
#include <stdbool.h>#include <stdint.h>#include <stdio.h>
Include dependency graph for send.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Typedefs | |
| typedef uint32_t | SendFlags |
Enumerations | |
| enum | SendFlag { SEND_NONE = 0 , SEND_REPLY = 1U << 0 , SEND_GROUP_REPLY = 1U << 1 , SEND_LIST_REPLY = 1U << 2 , SEND_FORWARD = 1U << 3 , SEND_POSTPONED = 1U << 4 , SEND_BATCH = 1U << 5 , SEND_KEY = 1U << 6 , SEND_RESEND = 1U << 7 , SEND_POSTPONED_FCC = 1U << 8 , SEND_NO_FREE_HEADER = 1U << 9 , SEND_DRAFT_FILE = 1U << 10 , SEND_TO_SENDER = 1U << 11 , SEND_GROUP_CHAT_REPLY = 1U << 12 , SEND_NEWS = 1U << 13 , SEND_REVIEW_TO = 1U << 14 , SEND_CONSUMED_STDIN = 1U << 15 , SEND_CLI_CRYPTO = 1U << 16 } |
| Flags for mutt_send_message(), e.g. More... | |
Functions | |
| void | mutt_add_to_reference_headers (struct Envelope *env, struct Envelope *env_cur, struct ConfigSubset *sub) |
| Generate references for a reply email. | |
| struct Address * | mutt_default_from (struct ConfigSubset *sub) |
| Get a default 'from' Address. | |
| int | mutt_edit_address (struct AddressList *al, const char *field, bool expand_aliases) |
| Edit an email address. | |
| void | mutt_encode_descriptions (struct Body *b, bool recurse, struct ConfigSubset *sub) |
| RFC2047 encode the content-descriptions. | |
| int | mutt_fetch_recips (struct Envelope *out, struct Envelope *in, SendFlags flags, struct ConfigSubset *sub) |
| Generate recpients for a reply email. | |
| void | mutt_fix_reply_recipients (struct Envelope *env, struct ConfigSubset *sub) |
| Remove duplicate recipients. | |
| void | mutt_forward_intro (struct Email *e, FILE *fp, struct ConfigSubset *sub) |
| Add the "start of forwarded message" text. | |
| void | mutt_forward_trailer (struct Email *e, FILE *fp, struct ConfigSubset *sub) |
| Add a "end of forwarded message" text. | |
| void | mutt_make_attribution_intro (struct Email *e, FILE *fp_out, struct ConfigSubset *sub) |
| Add "on DATE, PERSON wrote" header. | |
| void | mutt_make_attribution_trailer (struct Email *e, FILE *fp_out, struct ConfigSubset *sub) |
| Add suffix to replied email text. | |
| void | mutt_make_forward_subject (struct Envelope *env, struct Email *e, struct ConfigSubset *sub) |
| Create a subject for a forwarded email. | |
| void | mutt_make_misc_reply_headers (struct Envelope *env, struct Envelope *env_cur, struct ConfigSubset *sub) |
| Set subject for a reply. | |
| int | mutt_resend_message (FILE *fp, struct Mailbox *m, struct Email *e_cur, struct ConfigSubset *sub) |
| Resend an email. | |
| 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. | |
| void | mutt_set_followup_to (struct Envelope *env, struct ConfigSubset *sub) |
| Set followup-to field. | |
| bool | mutt_send_list_subscribe (struct Mailbox *m, struct Email *e) |
| Send a mailing-list subscription email. | |
| bool | mutt_send_list_unsubscribe (struct Mailbox *m, struct Email *e) |
| Send a mailing-list unsubscription email. | |
Prepare and send an email.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file send.h.
| enum SendFlag |
Flags for mutt_send_message(), e.g.
| Enumerator | |
|---|---|
| SEND_NONE | No flags are set. |
| SEND_REPLY | Reply to sender. |
| SEND_GROUP_REPLY | Reply to all. |
| SEND_LIST_REPLY | Reply to mailing list. |
| SEND_FORWARD | Forward email. |
| SEND_POSTPONED | Recall a postponed email. |
| SEND_BATCH | Send email in batch mode (without user interaction) |
| SEND_KEY | Mail a PGP public key. |
| SEND_RESEND | Reply using the current email as a template. |
| SEND_POSTPONED_FCC | Used by mutt_get_postponed() to signal that the Mutt-Fcc header field was present. |
| SEND_NO_FREE_HEADER | Used by the -E flag. |
| SEND_DRAFT_FILE | Used by the -H flag. |
| SEND_TO_SENDER | Compose new email to sender. |
| SEND_GROUP_CHAT_REPLY | Reply to all recipients preserving To/Cc. |
| SEND_NEWS | Reply to a news article. |
| SEND_REVIEW_TO | Allow the user to edit the To field. |
| SEND_CONSUMED_STDIN | stdin has been read; don't read it twice |
| SEND_CLI_CRYPTO | Enable message security in modes that by default don't enable it. |
Definition at line 43 of file send.h.
| void mutt_add_to_reference_headers | ( | struct Envelope * | env, |
| struct Envelope * | env_cur, | ||
| struct ConfigSubset * | sub ) |
Generate references for a reply email.
Definition at line 1039 of file send.c.
Here is the call graph for this function:
Here is the caller graph for this function:| struct Address * mutt_default_from | ( | struct ConfigSubset * | sub | ) |
Get a default 'from' Address.
| sub | Config Subset |
| ptr | Newly allocated Address |
Definition at line 1404 of file send.c.
Here is the call graph for this function:
Here is the caller graph for this function:| int mutt_edit_address | ( | struct AddressList * | al, |
| const char * | field, | ||
| bool | expand_aliases ) |
Edit an email address.
| [in,out] | al | AddressList to edit |
| [in] | field | Prompt for user |
| [in] | expand_aliases | If true, expand Address aliases |
| 0 | Success |
| -1 | Failure |
Definition at line 184 of file send.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void mutt_encode_descriptions | ( | struct Body * | b, |
| bool | recurse, | ||
| struct ConfigSubset * | sub ) |
RFC2047 encode the content-descriptions.
| b | Body of email |
| recurse | If true, encode children parts |
| sub | Config Subset |
Definition at line 1500 of file send.c.
Here is the call graph for this function:
Here is the caller graph for this function:| int mutt_fetch_recips | ( | struct Envelope * | out, |
| struct Envelope * | in, | ||
| SendFlags | flags, | ||
| struct ConfigSubset * | sub ) |
Generate recpients for a reply email.
| out | Envelope to populate |
| in | Envelope of source email |
| flags | Flags, see SendFlags |
| sub | Config Subset |
| 0 | Success |
| -1 | Failure |
Definition at line 878 of file send.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void mutt_fix_reply_recipients | ( | struct Envelope * | env, |
| struct ConfigSubset * | sub ) |
Remove duplicate recipients.
| env | Envelope to fix |
| sub | Config Subset |
Definition at line 961 of file send.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void mutt_forward_intro | ( | struct Email * | e, |
| FILE * | fp, | ||
| struct ConfigSubset * | sub ) |
Add the "start of forwarded message" text.
| e | |
| sub | Config Subset |
| fp | File to write to |
Definition at line 461 of file send.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void mutt_forward_trailer | ( | struct Email * | e, |
| FILE * | fp, | ||
| struct ConfigSubset * | sub ) |
Add a "end of forwarded message" text.
| e | |
| sub | Config Subset |
| fp | File to write to |
Definition at line 484 of file send.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void mutt_make_attribution_intro | ( | struct Email * | e, |
| FILE * | fp_out, | ||
| struct ConfigSubset * | sub ) |
Add "on DATE, PERSON wrote" header.
| e | |
| fp_out | File to write to |
| sub | Config Subset |
Definition at line 668 of file send.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void mutt_make_attribution_trailer | ( | struct Email * | e, |
| FILE * | fp_out, | ||
| struct ConfigSubset * | sub ) |
| void mutt_make_forward_subject | ( | struct Envelope * | env, |
| struct Email * | e, | ||
| struct ConfigSubset * | sub ) |
Create a subject for a forwarded email.
Definition at line 991 of file send.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void mutt_make_misc_reply_headers | ( | struct Envelope * | env, |
| struct Envelope * | env_cur, | ||
| struct ConfigSubset * | sub ) |
Set subject for a reply.
Definition at line 1011 of file send.c.
Here is the call graph for this function:
Here is the caller graph for this function:| int mutt_resend_message | ( | FILE * | fp, |
| struct Mailbox * | m, | ||
| struct Email * | e_cur, | ||
| struct ConfigSubset * | sub ) |
Resend an email.
| 0 | Message was successfully sent |
| -1 | Message was aborted or an error occurred |
| 1 | Message was postponed |
Definition at line 1560 of file send.c.
Here is the call graph for this function:
Here is the caller graph for this function:| 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.
| flags | Send mode, see SendFlags |
| e_templ | Template to use for new message |
| tempfile | File specified by -i or -H |
| m | Current mailbox |
| ea | Array of Emails to send |
| sub | Config Subset |
| 0 | Message was successfully sent |
| -1 | Message was aborted or an error occurred |
| 1 | Message was postponed |
Definition at line 2030 of file send.c.
Here is the caller graph for this function:| void mutt_set_followup_to | ( | struct Envelope * | env, |
| struct ConfigSubset * | sub ) |
Set followup-to field.
| env | Envelope to modify |
| sub | Config Subset |
Definition at line 1280 of file send.c.
Here is the call graph for this function:
Here is the caller graph for this function:Send a mailing-list subscription email.
| true | Success |
| false | Failure |
Definition at line 2956 of file send.c.
Here is the call graph for this function:
Here is the caller graph for this function:Send a mailing-list unsubscription email.
| true | Success |
| false | Failure |
Definition at line 2985 of file send.c.
Here is the call graph for this function:
Here is the caller graph for this function: