NeoMutt  2025-09-05-55-g97fc89
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
edata.h File Reference

Imap-specific Email data. More...

#include <stdbool.h>
+ Include dependency graph for edata.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ImapEmailData
 IMAP-specific Email data -. More...
 

Functions

void imap_edata_free (void **ptr)
 Free the private Email data - Implements Email::edata_free() -.
 
struct ImapEmailDataimap_edata_get (struct Email *e)
 Get the private data for this Email.
 
struct ImapEmailDataimap_edata_new (void)
 Create a new ImapEmailData.
 
struct ImapEmailDataimap_edata_clone (struct ImapEmailData *src)
 Clone an ImapEmailData.
 

Detailed Description

Imap-specific Email data.

Authors
  • Richard Russon
  • Pietro Cerutti

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 edata.h.

Function Documentation

◆ imap_edata_get()

struct ImapEmailData * imap_edata_get ( struct Email * e)

Get the private data for this Email.

Parameters
eEmail
Return values
ptrPrivate Email data

Definition at line 66 of file edata.c.

67{
68 if (!e)
69 return NULL;
70 return e->edata;
71}
void * edata
Driver-specific data.
Definition email.h:74
+ Here is the caller graph for this function:

◆ imap_edata_new()

struct ImapEmailData * imap_edata_new ( void )

Create a new ImapEmailData.

Return values
ptrNew ImapEmailData

Definition at line 56 of file edata.c.

57{
58 return MUTT_MEM_CALLOC(1, struct ImapEmailData);
59}
#define MUTT_MEM_CALLOC(n, type)
Definition memory.h:47
IMAP-specific Email data -.
Definition edata.h:35
+ Here is the caller graph for this function:

◆ imap_edata_clone()

struct ImapEmailData * imap_edata_clone ( struct ImapEmailData * src)

Clone an ImapEmailData.

Parameters
srcThe source ImapEmailData to clone
Return values
ptrNew ImapEmailData

Definition at line 78 of file edata.c.

79{
80 struct ImapEmailData *dst = imap_edata_new();
81 memcpy(dst, src, sizeof(*src));
84 return dst;
85}
struct ImapEmailData * imap_edata_new(void)
Create a new ImapEmailData.
Definition edata.c:56
char * mutt_str_dup(const char *str)
Copy a string, safely.
Definition string.c:255
char * flags_remote
Definition edata.h:49
char * flags_system
Definition edata.h:48
+ Here is the call graph for this function:
+ Here is the caller graph for this function: