79 memset(&actx->
v2r[actx->
idxlen], 0, grow *
sizeof(
short));
96 if ((aidx < 0) || (aidx > actx->
idxmax))
104 for (
int i = actx->
idxlen; i < actx->idxmax; i++)
110 for (
int i = actx->
idxlen - 1; i > aidx; i--)
111 actx->
idx[i] = actx->
idx[i - 1];
113 actx->
idx[aidx] = attach;
123 if (!actx || !fp_new)
130 for (
int i = actx->
fp_len; i < actx->fp_max; i++)
151 for (
int i = actx->
body_len; i < actx->body_max; i++)
167 for (
int i = 0; i < actx->
idxlen; i++)
176 for (
int i = 0; i < actx->
fp_len; i++)
180 for (
int i = 0; i < actx->
body_len; i++)
struct AttachCtx * mutt_actx_new(void)
Create a new Attachment Context.
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_fp(struct AttachCtx *actx, FILE *fp_new)
Save a File handle to the Attachment Context.
struct AttachPtr * mutt_aptr_new(void)
Create a new Attachment Pointer.
void mutt_actx_add_body(struct AttachCtx *actx, struct Body *b)
Add an email body to an Attachment Context.
void mutt_actx_entries_free(struct AttachCtx *actx)
Free entries in an Attachment Context.
void mutt_aptr_free(struct AttachPtr **ptr)
Free an Attachment Pointer.
void mutt_actx_free(struct AttachCtx **ptr)
Free an Attachment Context.
Handling of email attachments.
void mutt_body_free(struct Body **ptr)
Free a Body.
Structs that make up an email.
#define mutt_file_fclose(FP)
#define MUTT_MEM_CALLOC(n, type)
#define MUTT_MEM_REALLOC(pptr, n, type)
Convenience wrapper for the library headers.
short vcount
The number of virtual attachments.
short body_len
Number of Body parts.
short fp_max
Size of FILE array.
struct AttachPtr ** idx
Array of attachments.
struct Body ** body_idx
Extra struct Body* used for decryption.
short fp_len
Number of FILE handles.
short body_max
Size of Body array.
FILE ** fp_idx
Extra FILE* used for decryption.
short idxmax
Size of attachment array.
short idxlen
Number of attachmentes.
short * v2r
Mapping from virtual to real attachment.
An email to which things will be attached.
struct Body * body
Attachment.
char * tree
Tree characters to display.
struct AttachPtr * aptr
Menu information, used in recvattach.c.