Email


Data Structures

struct  libnfsnapi_email_t

Functions

libnfsnapi_email_tlibnfsnapi_email_create (libnfsnapi_mgr_t *mgr, const char *domain)
void libnfsnapi_email_destroy (libnfsnapi_email_t *email)
int libnfsnapi_email_setForward (libnfsnapi_email_t *email, const char *forward, const char *dest_email)
int libnfsnapi_email_removeForward (libnfsnapi_email_t *email, const char *forward)

Function Documentation

libnfsnapi_email_t* libnfsnapi_email_create libnfsnapi_mgr_t mgr,
const char *  domain
 

Create an Email object.

Parameters:
mgr A Manager object, created with libnfsnapi_mgr_create.
domain The domain name. It will be copied internally.
Returns:
An Email object, or NULL on failure.

Definition at line 15 of file email.c.

References LIBNFSNAPI_ERROR_MEMORY.

void libnfsnapi_email_destroy libnfsnapi_email_t email  ) 
 

Destroy an Email object, and free all memory associated with it. Do not use this pointer after calling this function.

Definition at line 38 of file email.c.

int libnfsnapi_email_setForward libnfsnapi_email_t email,
const char *  forward,
const char *  dest_email
 

Add a new email forwarding address. If the specified forward already exists, it will be overwritten.

Parameters:
email The Email object.
forward The username component of the email address to forward.
dest_email The destination email address.
Returns:
Zero on success.
Todo:
Parse response to check for actual success/failure.

Add comment about {bounce,discard}@nearlyfreespeech.net.

Definition at line 44 of file email.c.

References LIBNFSNAPI_ERROR_MEMORY.

int libnfsnapi_email_removeForward libnfsnapi_email_t email,
const char *  forward
 

Remove an email forwarding address.

Parameters:
email The Email object.
forward The username component of the email address to remove.
Returns:
Zero on success.
Todo:
Parse response to check for actual success/failure.

Definition at line 73 of file email.c.

References LIBNFSNAPI_ERROR_MEMORY.


Generated on Sat Jan 13 17:42:28 2007 for libNFSNapi by  doxygen 1.4.6