Handling of email attachments. More...
#include <stdbool.h>
#include <stdio.h>
Go to the source code of this file.
Data Structures | |
struct | AttachPtr |
An email to which things will be attached. More... | |
struct | AttachCtx |
A set of attachments. More... | |
Enumerations | |
enum | ExpandoDataAttach { ED_ATT_CHARSET = 1 , ED_ATT_NUMBER , ED_ATT_TREE } |
Expando UIDs for Attachments. More... | |
Functions | |
void | mutt_actx_add_attach (struct AttachCtx *actx, struct AttachPtr *attach) |
Add an Attachment to an Attachment Context. | |
void | mutt_actx_ins_attach (struct AttachCtx *actx, struct AttachPtr *attach, int aidx) |
Insert an Attachment into an Attachment Context at Specified Index. | |
void | mutt_actx_add_body (struct AttachCtx *actx, struct Body *b) |
Add an email body to an Attachment Context. | |
void | mutt_actx_add_fp (struct AttachCtx *actx, FILE *fp_new) |
Save a File handle to the Attachment Context. | |
void | mutt_actx_free (struct AttachCtx **ptr) |
Free an Attachment Context. | |
void | mutt_actx_entries_free (struct AttachCtx *actx) |
Free entries in an Attachment Context. | |
struct AttachCtx * | mutt_actx_new (void) |
Create a new Attachment Context. | |
void | mutt_aptr_free (struct AttachPtr **ptr) |
Free an Attachment Pointer. | |
struct AttachPtr * | mutt_aptr_new (void) |
Create a new Attachment Pointer. | |
Handling of email attachments.
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 attach.h.
enum ExpandoDataAttach |
Expando UIDs for Attachments.
Enumerator | |
---|---|
ED_ATT_CHARSET | |
ED_ATT_NUMBER | |
ED_ATT_TREE |
Insert an Attachment into an Attachment Context at Specified Index.
actx | Attachment context |
attach | Attachment to insert |
aidx | Index to insert attachment at |
Definition at line 91 of file attach.c.
Add an email body to an Attachment Context.
Definition at line 142 of file attach.c.
void mutt_actx_add_fp | ( | struct AttachCtx * | actx, |
FILE * | fp_new | ||
) |
Save a File handle to the Attachment Context.
actx | Attachment context |
fp_new | File handle to save |
Definition at line 121 of file attach.c.
void mutt_actx_free | ( | struct AttachCtx ** | ptr | ) |
Free an Attachment Context.
[out] | ptr | Attachment context |
Definition at line 198 of file attach.c.
void mutt_actx_entries_free | ( | struct AttachCtx * | actx | ) |
Free entries in an Attachment Context.
actx | Attachment context |
Definition at line 162 of file attach.c.
struct AttachCtx * mutt_actx_new | ( | void | ) |
void mutt_aptr_free | ( | struct AttachPtr ** | ptr | ) |