popstate.h File Reference

Implement the session cache of the pop3 account. More...

Go to the source code of this file.

Defines

#define MAILMESSAGE_DELETE   0x1
 the falg used for mailmessage deletion

Functions

struct popstate_t * new_popstate_t ()
 the falg used for popstate state
void new_popstate_other (struct popstate_t *p, void *newp(void *), void *data)
void delete_popstate_t (struct popstate_t *p, void deletep(void *))
 free memory
void set_popstate_password (struct popstate_t *p, const char *passwd)
 sets popstate password, string will be duplicated
void set_popstate_username (struct popstate_t *p, const char *username)
 sets popstate username, string will be duplicated
void set_popstate_nummesg (struct popstate_t *p, int n)
 sets popstate nummessages, expanding/shrinking the data structure
void set_popstate_boxsize (struct popstate_t *p, int n)
 sets popstate mailbox size (invalidates the DELE flagged hiding in the corresponding get_ function)
const char * get_popstate_password (struct popstate_t *p)
 sets popstate flag
const char * get_popstate_username (struct popstate_t *p)
 get popstate username, not strdupd
struct mail_msg_t * get_popstate_mailmessage (struct popstate_t *p, int n)
 get popstate mailmessage i handler
int get_popstate_nummesg (struct popstate_t *p)
 get popstate number of messages
int get_popstate_boxsize (struct popstate_t *p)
void * get_popstate_other (struct popstate_t *p)
void set_mailmessage_size (struct mail_msg_t *m, int size)
 sets mailmessage size
void set_mailmessage_uidl (struct mail_msg_t *m, const char *uidl)
 sets mailmessage uidl, string will be duplicated
void set_mailmessage_flag (struct mail_msg_t *m, int flag)
 sets mailmessage flag
void unset_mailmessage_flag (struct mail_msg_t *m, int flag)
 unsets mailmessage flag
int get_mailmessage_size (struct mail_msg_t *m)
 get mailmessage size
int get_mailmessage_flag (struct mail_msg_t *m, int flag)
 get if mailmessage flag is set
const char * get_mailmessage_uidl (struct mail_msg_t *m)
 get mailmessage uidl, not strdupd


Detailed Description

Implement the session cache of the pop3 account.

Author:
Nicola Cocchiaro   <sorry guy>

Enrico Tassi   <sorry guy>

Definition in file popstate.h.


Define Documentation

#define MAILMESSAGE_DELETE   0x1

the falg used for mailmessage deletion

Definition at line 22 of file popstate.h.


Function Documentation

void delete_popstate_t ( struct popstate_t *  p,
void   deletepvoid * 
)

free memory

int get_mailmessage_flag ( struct mail_msg_t *  m,
int  flag 
)

get if mailmessage flag is set

int get_mailmessage_size ( struct mail_msg_t *  m  ) 

get mailmessage size

const char* get_mailmessage_uidl ( struct mail_msg_t *  m  ) 

get mailmessage uidl, not strdupd

int get_popstate_boxsize ( struct popstate_t *  p  ) 

struct mail_msg_t* get_popstate_mailmessage ( struct popstate_t *  p,
int  n 
) [read]

get popstate mailmessage i handler

int get_popstate_nummesg ( struct popstate_t *  p  ) 

get popstate number of messages

void* get_popstate_other ( struct popstate_t *  p  ) 

const char* get_popstate_password ( struct popstate_t *  p  ) 

sets popstate flag

unsets popstate flag get if popstate flag is set get popstate password, not strdupd

const char* get_popstate_username ( struct popstate_t *  p  ) 

get popstate username, not strdupd

void new_popstate_other ( struct popstate_t *  p,
void *  newpvoid *,
void *  data 
)

struct popstate_t* new_popstate_t (  )  [read]

the falg used for popstate state

returns a new and empty structure

void set_mailmessage_flag ( struct mail_msg_t *  m,
int  flag 
)

sets mailmessage flag

void set_mailmessage_size ( struct mail_msg_t *  m,
int  size 
)

sets mailmessage size

void set_mailmessage_uidl ( struct mail_msg_t *  m,
const char *  uidl 
)

sets mailmessage uidl, string will be duplicated

void set_popstate_boxsize ( struct popstate_t *  p,
int  n 
)

sets popstate mailbox size (invalidates the DELE flagged hiding in the corresponding get_ function)

void set_popstate_nummesg ( struct popstate_t *  p,
int  n 
)

sets popstate nummessages, expanding/shrinking the data structure

void set_popstate_password ( struct popstate_t *  p,
const char *  passwd 
)

sets popstate password, string will be duplicated

void set_popstate_username ( struct popstate_t *  p,
const char *  username 
)

sets popstate username, string will be duplicated

void unset_mailmessage_flag ( struct mail_msg_t *  m,
int  flag 
)

unsets mailmessage flag


Generated on Sat Nov 1 15:55:53 2008 for FreePOPs by  doxygen 1.5.6