NeoMutt  2024-12-12-19-ge4b57e
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
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...
 

Functions

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.

Authors
  • 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 http://www.gnu.org/licenses/.

Definition in file attach_data.h.

Function Documentation

◆ attach_data_new()

struct ComposeAttachData * attach_data_new ( struct Email e)

Create new Compose Attach Data.

Parameters
eEmail
Return values
ptrNew Compose Attach Data

Definition at line 54 of file attach_data.c.

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}
struct AttachCtx * mutt_actx_new(void)
Create a new Attachment Context.
Definition: attach.c:189
#define MUTT_MEM_CALLOC(n, type)
Definition: memory.h:40
struct Email * email
Used by recvattach for updating.
Definition: attach.h:64
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: