NeoMutt  2024-04-25-89-g194907
Teaching an old dog new tricks
No Matches
attach_data.c File Reference

Compose Attach Data. More...

#include "config.h"
#include "mutt/lib.h"
#include "attach_data.h"
#include "attach/lib.h"
+ Include dependency graph for attach_data.c:

Go to the source code of this file.


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

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.c.

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 54 of file attach_data.c.

56 struct ComposeAttachData *attach_data = mutt_mem_calloc(1, sizeof(struct ComposeAttachData));
58 attach_data->actx = mutt_actx_new();
59 attach_data->actx->email = e;
61 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:51
struct Email * email
Used by recvattach for updating.
Definition: attach.h:66
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: