NeoMutt  2024-03-23-147-g885fbc
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
edata.h File Reference

Pop-specific Email data. More...

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

Go to the source code of this file.

Data Structures

struct  PopEmailData
 POP-specific Email data -. More...
 

Functions

void pop_edata_free (void **ptr)
 Free the private Email data - Implements Email::edata_free() -.
 
struct PopEmailDatapop_edata_get (struct Email *e)
 Get the private data for this Email.
 
struct PopEmailDatapop_edata_new (const char *uid)
 Create a new PopEmailData for an email.
 

Detailed Description

Pop-specific Email 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 edata.h.

Function Documentation

◆ pop_edata_get()

struct PopEmailData * pop_edata_get ( struct Email e)

Get the private data for this Email.

Parameters
eEmail
Return values
ptrPrivate Email data

Definition at line 68 of file edata.c.

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

◆ pop_edata_new()

struct PopEmailData * pop_edata_new ( const char *  uid)

Create a new PopEmailData for an email.

Parameters
uidEmail UID
Return values
ptrNew PopEmailData struct

Definition at line 56 of file edata.c.

57{
58 struct PopEmailData *edata = mutt_mem_calloc(1, sizeof(struct PopEmailData));
59 edata->uid = mutt_str_dup(uid);
60 return edata;
61}
void * mutt_mem_calloc(size_t nmemb, size_t size)
Allocate zeroed memory on the heap.
Definition: memory.c:50
char * mutt_str_dup(const char *str)
Copy a string, safely.
Definition: string.c:253
POP-specific Email data -.
Definition: edata.h:32
const char * uid
UID of email.
Definition: edata.h:33
+ Here is the call graph for this function:
+ Here is the caller graph for this function: