Main Page | Alphabetical List | Compound List | File List | Compound Members | File Members

mta.h File Reference

#include <clist.h>
#include "server.h"
#include "message-types.h"
#include "manager.h"

Include dependency graph for mta.h:

Include dependency graph

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

Included by dependency graph

Go to the source code of this file.

Compounds

struct  XePMTA_s

Typedefs

typedef XePMTA_s XePMTA

Enumerations

enum  XePMTAType { XEP_MTA_INVALID, XEP_MTA_COMMAND, XEP_MTA_SMTP }

Functions

clist * a_MTA_list_new (void)
void a_MTA_list_free (clist *mtas)
clist * a_MTA_list_get (void)
XePMTAa_MTA_new (void)
void a_MTA_free (XePMTA *mta)
void a_MTA_set_id (XePMTA *mta, const char *id)
const char * a_MTA_get_id (XePMTA *mta)
void a_MTA_set_type (XePMTA *mta, XePMTAType type)
XePMTAType a_MTA_get_type (XePMTA *mta)
void a_MTA_set_command (XePMTA *mta, const char *command)
const char * a_MTA_get_command (XePMTA *mta)
void a_MTA_set_server (XePMTA *mta, XePServer *server)
XePServera_MTA_get_server (XePMTA *mta)
void a_MTA_send_message (XePMTA *mta, XePMessage *message, XePManagerMsgCb sent_cb, void *user_data, const char *sent_folder_ref)
void a_MTA_send_message_list (XePMTA *mta, clist *message_list, XePManagerMsgCb sent_cb, void *user_data)
int a_MTA_smtp_send_message (XePMTA *mta)
XePMTAa_MTA_lookup_by_ref (const char *ref)


Typedef Documentation

typedef struct XePMTA_s XePMTA
 


Enumeration Type Documentation

enum XePMTAType
 

Enumeration values:
XEP_MTA_INVALID 
XEP_MTA_COMMAND 
XEP_MTA_SMTP 


Function Documentation

void a_MTA_free XePMTA mta  ) 
 

Here is the call graph for this function:

const char* a_MTA_get_command XePMTA mta  ) 
 

const char* a_MTA_get_id XePMTA mta  ) 
 

XePServer* a_MTA_get_server XePMTA mta  ) 
 

XePMTAType a_MTA_get_type XePMTA mta  ) 
 

void a_MTA_list_free clist *  mtas  ) 
 

Here is the call graph for this function:

clist* a_MTA_list_get void   ) 
 

clist* a_MTA_list_new void   ) 
 

XePMTA* a_MTA_lookup_by_ref const char *  ref  ) 
 

Finds the MTA by its reference (id)

Parameters:
mtas clist of registered MTAs
ref the reference of the MTA. If NULL, the first MTA is returned
Returns:
the associated MTA. If ref is NULL, the first registered MTA is returned. Returns NULL if there is no MTAs, of if mtas is NULL

XePMTA* a_MTA_new void   ) 
 

Here is the call graph for this function:

void a_MTA_send_message XePMTA mta,
XePMessage message,
XePManagerMsgCb  sent_cb,
void *  user_data,
const char *  sent_folder_ref
 

Send a message using a Mail Transfer Agent

Parameters:
mta the XePMTA structure describing the Mail Transfer Agent to use
message the XePMessage structure containing the message to send. message must exist until sent_cb is called.
sent_cb function to be called when processing the message has finished. Its first argument is the user_data parameter, the second argument is the result code passed as a pointer (a cast from (void *) to (int) must be done).
user_data user data to pass as first argument to the send_cb

Here is the call graph for this function:

void a_MTA_send_message_list XePMTA mta,
clist *  message_list,
XePManagerMsgCb  sent_cb,
void *  user_data
 

Send a list of messages using a Mail Transfer Agent

Parameters:
mta the XePMTA structure describing the Mail Transfer Agent to use
message_list a clist of XePMessage structures containing the messages to send. The list and its content must exist until sent_cb is called.
sent_cb function to be called when processing the message has finished. Its first argument is the user_data parameter, the second argument is the result code passed as a pointer (a cast from (void *) to (int) must be done).
user_data user data to pass as first argument to the send_cb

void a_MTA_set_command XePMTA mta,
const char *  command
 

void a_MTA_set_id XePMTA mta,
const char *  id
 

void a_MTA_set_server XePMTA mta,
XePServer server
 

Here is the call graph for this function:

void a_MTA_set_type XePMTA mta,
XePMTAType  type
 

int a_MTA_smtp_send_message XePMTA mta  ) 
 

Send a message using an SMTP MTA This function is used from a thread, and is not meant to be used directly.

Parameters:
mta the XePMTA structure describing the MTA. The XePMTA::message member must point to the message to be sent.
Returns:
0 on success, -1 on failure.

Here is the call graph for this function:


Generated on Wed Oct 22 15:55:06 2003 for XetPan by doxygen 1.3.2