Defines the SMFEnvelope_T data type and related functions. More...
Go to the source code of this file.
Data Structures | |
struct | SMFEnvelope_T |
Message envelope object. More... | |
Typedefs | |
typedef void(* | SMFRcptForeachFunc )(char *addr, void *user_data) |
The function signature for a callback to smf_envelope_foreach_rcpt() | |
Functions | |
SMFEnvelope_T * | smf_envelope_new (void) |
Creates a new SMFEnvelope_T object. | |
void | smf_envelope_free (SMFEnvelope_T *envelope) |
Free SMFEnvelope_T object. | |
void | smf_envelope_set_sender (SMFEnvelope_T *envelope, char *sender) |
Set sender to envelope. | |
char * | smf_envelope_get_sender (SMFEnvelope_T *envelope) |
Get envelope sender. | |
int | smf_envelope_add_rcpt (SMFEnvelope_T *envelope, char *rcpt) |
Add a new recipient to envelope. | |
void | smf_envelope_foreach_rcpt (SMFEnvelope_T *envelope, SMFRcptForeachFunc callback, void *user_data) |
Recursively calls callback on each envelope recipient. | |
void | smf_envelope_set_auth_user (SMFEnvelope_T *envelope, char *auth_user) |
Set auth user. | |
char * | smf_envelope_get_auth_user (SMFEnvelope_T *envelope) |
Get auth user. | |
void | smf_envelope_set_auth_pass (SMFEnvelope_T *envelope, char *auth_pass) |
Set auth password. | |
char * | smf_envelope_get_auth_pass (SMFEnvelope_T *envelope) |
Get auth pass. | |
void | smf_envelope_set_nexthop (SMFEnvelope_T *envelope, char *nexthop) |
Set nexthop. | |
char * | smf_envelope_get_nexthop (SMFEnvelope_T *nexthop) |
Get nexthop. | |
void | smf_envelope_set_message (SMFEnvelope_T *envelope, SMFMessage_T *message) |
Set SMFMessage_T object. | |
SMFMessage_T * | smf_envelope_get_message (SMFEnvelope_T *envelope) |
Get SMFMessage_T object of SMFEnvelope_T. | |
Defines the SMFEnvelope_T data type and related functions.
A SMFEnvelope_T is used to delivery a SMFMessage_T via SMTP. The destination server can be set with smf_envelope_set_nexthop(). If the destination server requires smtp-auth login credentials, use smf_envelope_set_auth_user() and smf_envelope_set_auth_pass().
To create a new SMFEnvelope_T, use smf_envelope_new()
To destroy a SMFEnvelope_T use smf_envelope_free()
typedef void(* SMFRcptForeachFunc)(char *addr, void *user_data) |
The function signature for a callback to smf_envelope_foreach_rcpt()
ea | a SMFAddress_T object |
user_data | User-supplied callback data. |
int smf_envelope_add_rcpt | ( | SMFEnvelope_T * | envelope, |
char * | rcpt | ||
) |
Add a new recipient to envelope.
envelope | a SMFEnvelope_T |
rcpt | recipient address |
void smf_envelope_foreach_rcpt | ( | SMFEnvelope_T * | envelope, |
SMFRcptForeachFunc | callback, | ||
void * | user_data | ||
) |
Recursively calls callback on each envelope recipient.
envelope | SMFEnvelope_T object |
callback | function to call on each recipient |
user_data | user-supplied callback data |
void smf_envelope_free | ( | SMFEnvelope_T * | envelope | ) |
Free SMFEnvelope_T object.
envelope | SMFEnvelope_T object |
char* smf_envelope_get_auth_pass | ( | SMFEnvelope_T * | envelope | ) |
char* smf_envelope_get_auth_user | ( | SMFEnvelope_T * | envelope | ) |
SMFMessage_T* smf_envelope_get_message | ( | SMFEnvelope_T * | envelope | ) |
Get SMFMessage_T object of SMFEnvelope_T.
envelope | a SMFEnvelope_T object |
char* smf_envelope_get_nexthop | ( | SMFEnvelope_T * | envelope | ) |
char* smf_envelope_get_sender | ( | SMFEnvelope_T * | envelope | ) |
SMFEnvelope_T* smf_envelope_new | ( | void | ) |
Creates a new SMFEnvelope_T object.
void smf_envelope_set_auth_pass | ( | SMFEnvelope_T * | envelope, |
char * | auth_pass | ||
) |
Set auth password.
envelope | SMFEnvelope_T object |
auth_pass | Auth password |
void smf_envelope_set_auth_user | ( | SMFEnvelope_T * | envelope, |
char * | auth_user | ||
) |
Set auth user.
envelope | SMFEnvelope_T object |
auth_user | Auth username |
void smf_envelope_set_message | ( | SMFEnvelope_T * | envelope, |
SMFMessage_T * | message | ||
) |
Set SMFMessage_T object.
envelope | a SMFEnvelope_T object |
message | a SMFMessage_T object |
void smf_envelope_set_nexthop | ( | SMFEnvelope_T * | envelope, |
char * | nexthop | ||
) |
Set nexthop.
envelope | SMFEnvelope_T object |
nexthop | nexthop |
void smf_envelope_set_sender | ( | SMFEnvelope_T * | envelope, |
char * | sender | ||
) |
Set sender to envelope.
envelope | SMFEnvelope_T object |
sender | envelope sender address |