NeoMutt  2024-11-14-34-g5aaf0d
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
Email Private Data API

Free the private data attached to the Email. More...

Functions

void imap_edata_free (void **ptr)
 Free the private Email data - Implements Email::edata_free() -.
 
void maildir_edata_free (void **ptr)
 Free the private Email data - Implements Email::edata_free() -.
 
void nntp_edata_free (void **ptr)
 Free the private Email data - Implements Email::edata_free() -.
 
void pop_edata_free (void **ptr)
 Free the private Email data - Implements Email::edata_free() -.
 

Detailed Description

Free the private data attached to the Email.

Parameters
ptrPrivate data to be freed
Precondition
ptr is not NULL
*ptr is not NULL

Function Documentation

◆ imap_edata_free()

void imap_edata_free ( void **  ptr)

Free the private Email data - Implements Email::edata_free() -.

Definition at line 40 of file edata.c.

41{
42 if (!ptr || !*ptr)
43 return;
44
45 struct ImapEmailData *edata = *ptr;
46 /* this should be safe even if the list wasn't used */
47 FREE(&edata->flags_system);
48 FREE(&edata->flags_remote);
49
50 FREE(ptr);
51}
#define FREE(x)
Definition: memory.h:55
void * edata
Driver-specific data.
Definition: email.h:74
IMAP-specific Email data -.
Definition: edata.h:35
+ Here is the caller graph for this function:

◆ maildir_edata_free()

void maildir_edata_free ( void **  ptr)

Free the private Email data - Implements Email::edata_free() -.

Definition at line 38 of file edata.c.

39{
40 if (!ptr || !*ptr)
41 return;
42
43 struct MaildirEmailData *edata = *ptr;
44 FREE(&edata->custom_flags);
45
46 FREE(ptr);
47}
Maildir-specific Email data -.
Definition: edata.h:32
+ Here is the caller graph for this function:

◆ nntp_edata_free()

void nntp_edata_free ( void **  ptr)

Free the private Email data - Implements Email::edata_free() -.

Definition at line 38 of file edata.c.

39{
40 if (!ptr || !*ptr)
41 return;
42
43 FREE(ptr);
44}
+ Here is the caller graph for this function:

◆ pop_edata_free()

void pop_edata_free ( void **  ptr)

Free the private Email data - Implements Email::edata_free() -.

Each email has an attached PopEmailData, which contains things like the tags (labels).

Definition at line 41 of file edata.c.

42{
43 if (!ptr || !*ptr)
44 return;
45
46 struct PopEmailData *edata = *ptr;
47 FREE(&edata->uid);
48 FREE(ptr);
49}
POP-specific Email data -.
Definition: edata.h:32
+ Here is the caller graph for this function: