NeoMutt
2025-12-11-1009-ga75d9e
Teaching an old dog new tricks
DOXYGEN
Toggle main menu visibility
Loading...
Searching...
No Matches
attach_data.c
Go to the documentation of this file.
1
22
28
29
#include "config.h"
30
#include "
mutt/lib.h
"
31
#include "
attach_data.h
"
32
#include "
attach/lib.h
"
33
37
void
attach_data_free
(
struct
Menu
*
menu
,
void
**ptr)
38
{
39
if
(!ptr || !*ptr)
40
return
;
41
42
struct
ComposeAttachData
*attach_data = *ptr;
43
44
mutt_actx_free
(&attach_data->
actx
);
45
46
FREE
(ptr);
47
}
48
54
struct
ComposeAttachData
*
attach_data_new
(
struct
Email
*e)
55
{
56
struct
ComposeAttachData
*attach_data =
MUTT_MEM_CALLOC
(1,
struct
ComposeAttachData
);
57
58
attach_data->
actx
=
mutt_actx_new
();
59
attach_data->
actx
->
email
= e;
60
61
return
attach_data;
62
}
mutt_actx_new
struct AttachCtx * mutt_actx_new(void)
Create a new Attachment Context.
Definition
attach.c:189
mutt_actx_free
void mutt_actx_free(struct AttachCtx **ptr)
Free an Attachment Context.
Definition
attach.c:198
lib.h
GUI display the mailboxes in a side panel.
attach_data_new
struct ComposeAttachData * attach_data_new(struct Email *e)
Create new Compose Attach Data.
Definition
attach_data.c:54
attach_data.h
Compose Attach Data.
attach_data_free
void attach_data_free(struct Menu *menu, void **ptr)
Free the Compose Attach Data - Implements Menu::mdata_free() -.
Definition
attach_data.c:37
FREE
#define FREE(x)
Free memory and set the pointer to NULL.
Definition
memory.h:68
MUTT_MEM_CALLOC
#define MUTT_MEM_CALLOC(n, type)
Definition
memory.h:52
lib.h
Convenience wrapper for the library headers.
AttachCtx::email
struct Email * email
Used by recvattach for updating.
Definition
attach.h:66
ComposeAttachData
Data to fill the Compose Attach Window.
Definition
attach_data.h:33
ComposeAttachData::menu
struct Menu * menu
Menu displaying the attachments.
Definition
attach_data.h:35
ComposeAttachData::actx
struct AttachCtx * actx
Set of attachments.
Definition
attach_data.h:34
Email
The envelope/body of an email.
Definition
email.h:39
Menu
Definition
lib.h:86