NeoMutt  2024-11-14-34-g5aaf0d
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{
59 edata->uid = mutt_str_dup(uid);
60 return edata;
61}
#define MUTT_MEM_CALLOC(n, type)
Definition: memory.h:40
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: