mta.c File Reference
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <mailsmtp.h>
#include "intl.h"
#include "x_alloc.h"
#include "logging.h"
#include "message.h"
#include "utils.h"
#include "folder.h"
#include "mta.h"
Include dependency graph for mta.c:
 
|  | 
| 
 Functions | 
| clist * | a_MTA_list_new (void) | 
| void | a_MTA_list_free (clist *mtas) | 
| clist * | a_MTA_list_get (void) | 
| XePMTA * | a_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) | 
| XePServer * | a_MTA_get_server (XePMTA *mta) | 
| XePMTA * | a_MTA_lookup_by_ref (const char *ref) | 
| void | a_MTA_send_message (XePMTA *mta, XePMessage *message, XePManagerMsgCb sent_cb, void *user_data, const char *sent_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) | 
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 | ) |  |  | 
  
    | 
        
          | 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 
 | 
Here is the call graph for this function:
 
  
    |  | 
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 |  
          |  | ) |  |  | 
Here is the call graph for this function:
 
  
    | 
        
          | 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:00 2003 for XetPan by
 1.3.2
 
1.3.2