NeoMutt  2023-05-17-56-ga67199
Teaching an old dog new tricks
Go to the documentation of this file.
26#include <stdbool.h>
27#include <stdio.h>
29struct Body;
36 struct Body *body;
37 FILE *fp;
39 char *tree;
40 int level;
41 int num;
42 bool unowned : 1;
43 bool decrypted : 1;
44 bool collapsed : 1;
52 struct Email *email;
53 FILE *fp_root;
55 struct AttachPtr **idx;
56 short idxlen;
57 short idxmax;
59 short *v2r;
60 short vcount;
62 FILE **fp_idx;
63 short fp_len;
64 short fp_max;
66 struct Body **body_idx;
67 short body_len;
68 short body_max;
71void mutt_actx_add_attach (struct AttachCtx *actx, struct AttachPtr *attach);
72void mutt_actx_ins_attach (struct AttachCtx *actx, struct AttachPtr *attach, int aidx);
73void mutt_actx_add_body (struct AttachCtx *actx, struct Body *new_body);
74void mutt_actx_add_fp (struct AttachCtx *actx, FILE *fp_new);
75void mutt_actx_free (struct AttachCtx **ptr);
76void mutt_actx_entries_free(struct AttachCtx *actx);
77struct AttachCtx *mutt_actx_new (void);
79void mutt_aptr_free(struct AttachPtr **ptr);
80struct AttachPtr *mutt_aptr_new (void);
82#endif /* MUTT_ATTACH_ATTACH_H */
struct AttachCtx * mutt_actx_new(void)
Create a new Attachment Context.
Definition: attach.c:189
void mutt_actx_add_body(struct AttachCtx *actx, struct Body *new_body)
Add an email body to an Attachment Context.
Definition: attach.c:142
void mutt_actx_add_attach(struct AttachCtx *actx, struct AttachPtr *attach)
Add an Attachment to an Attachment Context.
Definition: attach.c:65
void mutt_actx_ins_attach(struct AttachCtx *actx, struct AttachPtr *attach, int aidx)
Insert an Attachment into an Attachment Context at Specified Index.
Definition: attach.c:91
void mutt_actx_add_fp(struct AttachCtx *actx, FILE *fp_new)
Save a File handle to the Attachment Context.
Definition: attach.c:121
struct AttachPtr * mutt_aptr_new(void)
Create a new Attachment Pointer.
Definition: attach.c:40
void mutt_actx_entries_free(struct AttachCtx *actx)
Free entries in an Attachment Context.
Definition: attach.c:162
void mutt_aptr_free(struct AttachPtr **ptr)
Free an Attachment Pointer.
Definition: attach.c:49
void mutt_actx_free(struct AttachCtx **ptr)
Free an Attachment Context.
Definition: attach.c:198
A set of attachments.
Definition: attach.h:51
short vcount
The number of virtual attachments.
Definition: attach.h:60
short body_len
Number of Body parts.
Definition: attach.h:67
FILE * fp_root
Used by recvattach for updating.
Definition: attach.h:53
short fp_max
Size of FILE array.
Definition: attach.h:64
struct Email * email
Used by recvattach for updating.
Definition: attach.h:52
struct AttachPtr ** idx
Array of attachments.
Definition: attach.h:55
struct Body ** body_idx
Extra struct Body* used for decryption.
Definition: attach.h:66
short fp_len
Number of FILE handles.
Definition: attach.h:63
short body_max
Size of Body array.
Definition: attach.h:68
FILE ** fp_idx
Extra FILE* used for decryption.
Definition: attach.h:62
short idxmax
Size of attachment array.
Definition: attach.h:57
short idxlen
Number of attachmentes.
Definition: attach.h:56
short * v2r
Mapping from virtual to real attachment.
Definition: attach.h:59
An email to which things will be attached.
Definition: attach.h:35
struct Body * body
Definition: attach.h:36
bool collapsed
Group is collapsed.
Definition: attach.h:44
char * tree
Tree characters to display.
Definition: attach.h:39
int num
Attachment index number.
Definition: attach.h:41
int level
Nesting depth of attachment.
Definition: attach.h:40
FILE * fp
Used in the recvattach menu.
Definition: attach.h:37
bool unowned
Don't unlink on detach.
Definition: attach.h:42
bool decrypted
Not part of message as stored in the email->body.
Definition: attach.h:43
int parent_type
Type of parent attachment, e.g. TYPE_MULTIPART.
Definition: attach.h:38
The body of an email.
Definition: body.h:36
The envelope/body of an email.
Definition: email.h:37