forked from neomutt/neomutt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsendlib.h
50 lines (44 loc) · 2.25 KB
/
sendlib.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/**
* @file
* Miscellaneous functions for sending an email
*
* @authors
* Copyright (C) 2018 Richard Russon <[email protected]>
* Copyright (C) 2019 Pietro Cerutti <[email protected]>
*
* @copyright
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software
* Foundation, either version 2 of the License, or (at your option) any later
* version.
*
* 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/>.
*/
#ifndef MUTT_SEND_SENDLIB_H
#define MUTT_SEND_SENDLIB_H
#include <stdbool.h>
#include <stdio.h>
#include "email/lib.h"
struct AddressList;
struct ConfigSubset;
struct Mailbox;
#define MUTT_RANDTAG_LEN 16
int mutt_bounce_message(FILE *fp, struct Mailbox *m, struct Email *e, struct AddressList *to, struct ConfigSubset *sub);
const char * mutt_fqdn(bool may_hide_host, const struct ConfigSubset *sub);
enum ContentType mutt_lookup_mime_type(struct Body *att, const char *path);
struct Body * mutt_make_file_attach(const char *path, struct ConfigSubset *sub);
struct Body * mutt_make_message_attach(struct Mailbox *m, struct Email *e, bool attach_msg, struct ConfigSubset *sub);
void mutt_message_to_7bit(struct Body *a, FILE *fp, struct ConfigSubset *sub);
void mutt_prepare_envelope(struct Envelope *env, bool final, struct ConfigSubset *sub);
void mutt_stamp_attachment(struct Body *a);
void mutt_unprepare_envelope(struct Envelope *env);
void mutt_update_encoding(struct Body *a, struct ConfigSubset *sub);
int mutt_write_fcc(const char *path, struct Email *e, const char *msgid, bool post, const char *fcc, char **finalpath, struct ConfigSubset *sub);
int mutt_write_multiple_fcc(const char *path, struct Email *e, const char *msgid, bool post, char *fcc, char **finalpath, struct ConfigSubset *sub);
#endif /* MUTT_SEND_SENDLIB_H */