NeoMutt  2023-05-17-56-ga67199
Teaching an old dog new tricks
attach_data.h File Reference

Compose Attach Data. More...

+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ComposeAttachData
 Data to fill the Compose Attach Window. More...


void attach_data_free (struct Menu *menu, void **ptr)
 Free the Compose Attach Data - Implements Menu::mdata_free() -. More...
struct ComposeAttachDataattach_data_new (struct Email *e)
 Create new Compose Attach Data. More...

Detailed Description

Compose Attach Data.

  • Richard Russon

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

Definition in file attach_data.h.

Function Documentation

◆ attach_data_new()

struct ComposeAttachData * attach_data_new ( struct Email e)

Create new Compose Attach Data.

Return values
ptrNew Compose Attach Data

Definition at line 51 of file attach_data.c.

53 struct ComposeAttachData *attach_data = mutt_mem_calloc(1, sizeof(struct ComposeAttachData));
55 attach_data->actx = mutt_actx_new();
56 attach_data->actx->email = e;
58 return attach_data;
struct AttachCtx * mutt_actx_new(void)
Create a new Attachment Context.
Definition: attach.c:189
void * mutt_mem_calloc(size_t nmemb, size_t size)
Allocate zeroed memory on the heap.
Definition: memory.c:50
struct Email * email
Used by recvattach for updating.
Definition: attach.h:52
Data to fill the Compose Attach Window.
Definition: attach_data.h:33
struct AttachCtx * actx
Set of attachments.
Definition: attach_data.h:34
+ Here is the call graph for this function:
+ Here is the caller graph for this function: