libesmtp.h   libesmtp.h 
skipping to change at line 150 skipping to change at line 150
void *smtp_set_application_data (smtp_session_t session, void *data); void *smtp_set_application_data (smtp_session_t session, void *data);
void *smtp_get_application_data (smtp_session_t session); void *smtp_get_application_data (smtp_session_t session);
void *smtp_message_set_application_data (smtp_message_t message, void *data ); void *smtp_message_set_application_data (smtp_message_t message, void *data );
void *smtp_message_get_application_data (smtp_message_t message); void *smtp_message_get_application_data (smtp_message_t message);
void *smtp_recipient_set_application_data (smtp_recipient_t recipient, void *smtp_recipient_set_application_data (smtp_recipient_t recipient,
void *data); void *data);
void *smtp_recipient_get_application_data (smtp_recipient_t recipient); void *smtp_recipient_get_application_data (smtp_recipient_t recipient);
int smtp_option_require_all_recipients (smtp_session_t session, int state); int smtp_option_require_all_recipients (smtp_session_t session, int state);
struct Gsasl;
int smtp_gsasl_set_context (smtp_session_t session, struct Gsasl *context);
#if LIBESMTP_ENABLE_DEPRECATED_SYMBOLS
#ifdef _auth_client_h #ifdef _auth_client_h
int smtp_auth_set_context (smtp_session_t session, auth_context_t context); int smtp_auth_set_context (smtp_session_t session, auth_context_t context);
#endif #endif
#endif
/* /*
Standard callbacks for reading the message from the application. Standard callbacks for reading the message from the application.
*/ */
const char *_smtp_message_fp_cb (void **ctx, int *len, void *arg); const char *_smtp_message_fp_cb (void **ctx, int *len, void *arg);
#define smtp_set_message_fp(message,fp) \ #define smtp_set_message_fp(message,fp) \
smtp_set_messagecb ((message), _smtp_message_fp_cb, (fp)) smtp_set_messagecb ((message), _smtp_message_fp_cb, (fp))
const char *_smtp_message_str_cb (void **ctx, int *len, void *arg); const char *_smtp_message_str_cb (void **ctx, int *len, void *arg);
skipping to change at line 184 skipping to change at line 188
}; };
#define Timeout_OVERRIDE_RFC2822_MINIMUM 0x1000 #define Timeout_OVERRIDE_RFC2822_MINIMUM 0x1000
long smtp_set_timeout (smtp_session_t session, int which, long value); long smtp_set_timeout (smtp_session_t session, int which, long value);
/************************************************************************** ** /************************************************************************** **
* The following APIs relate to SMTP extensions. Note that not all * The following APIs relate to SMTP extensions. Note that not all
* supported extensions have corresponding API functions. * supported extensions have corresponding API functions.
************************************************************************** **/ ************************************************************************** **/
/* /*
RFC 1891. Delivery Status Notification (DSN) RFC 3461. Delivery Status Notification (DSN)
*/ */
enum ret_flags { Ret_NOTSET, Ret_FULL, Ret_HDRS }; enum ret_flags { Ret_NOTSET, Ret_FULL, Ret_HDRS };
int smtp_dsn_set_ret (smtp_message_t message, enum ret_flags flags); int smtp_dsn_set_ret (smtp_message_t message, enum ret_flags flags);
int smtp_dsn_set_envid (smtp_message_t message, const char *envid); int smtp_dsn_set_envid (smtp_message_t message, const char *envid);
enum notify_flags enum notify_flags
{ {
Notify_NOTSET, Notify_NOTSET,
Notify_NEVER = -1, Notify_NEVER = -1,
skipping to change at line 210 skipping to change at line 214
int smtp_dsn_set_orcpt (smtp_recipient_t recipient, int smtp_dsn_set_orcpt (smtp_recipient_t recipient,
const char *address_type, const char *address); const char *address_type, const char *address);
/* /*
RFC 1870. SMTP Size extension. RFC 1870. SMTP Size extension.
*/ */
int smtp_size_set_estimate (smtp_message_t message, unsigned long size); int smtp_size_set_estimate (smtp_message_t message, unsigned long size);
/* /*
RFC 1652. 8bit-MIME Transport RFC 6152. 8bit-MIME Transport
*/ */
enum e8bitmime_body enum e8bitmime_body
{ {
E8bitmime_NOTSET, E8bitmime_NOTSET,
E8bitmime_7BIT, E8bitmime_7BIT,
E8bitmime_8BITMIME, E8bitmime_8BITMIME,
E8bitmime_BINARYMIME E8bitmime_BINARYMIME
}; };
int smtp_8bitmime_set_body (smtp_message_t message, enum e8bitmime_body bod y); int smtp_8bitmime_set_body (smtp_message_t message, enum e8bitmime_body bod y);
skipping to change at line 291 skipping to change at line 295
while (0) while (0)
#define SMTP_ERR_NOTHING_TO_DO 2 #define SMTP_ERR_NOTHING_TO_DO 2
#define SMTP_ERR_DROPPED_CONNECTION 3 #define SMTP_ERR_DROPPED_CONNECTION 3
#define SMTP_ERR_INVALID_RESPONSE_SYNTAX 4 #define SMTP_ERR_INVALID_RESPONSE_SYNTAX 4
#define SMTP_ERR_STATUS_MISMATCH 5 #define SMTP_ERR_STATUS_MISMATCH 5
#define SMTP_ERR_INVALID_RESPONSE_STATUS 6 #define SMTP_ERR_INVALID_RESPONSE_STATUS 6
#define SMTP_ERR_INVAL 7 #define SMTP_ERR_INVAL 7
#define SMTP_ERR_EXTENSION_NOT_AVAILABLE 8 #define SMTP_ERR_EXTENSION_NOT_AVAILABLE 8
#if LIBESMTP_ENABLE_DEPRECATED_SYMBOLS
/* Deprecated - these will be removed in a future release */ /* Deprecated - these will be removed in a future release */
#define SMTP_ERR_HOST_NOT_FOUND SMTP_ERR_EAI_ADDRFAM ILY #define SMTP_ERR_HOST_NOT_FOUND SMTP_ERR_EAI_ADDRFAM ILY
#define SMTP_ERR_NO_ADDRESS SMTP_ERR_EAI_NODATA #define SMTP_ERR_NO_ADDRESS SMTP_ERR_EAI_NODATA
#define SMTP_ERR_NO_RECOVERY SMTP_ERR_EAI_FAIL #define SMTP_ERR_NO_RECOVERY SMTP_ERR_EAI_FAIL
#define SMTP_ERR_TRY_AGAIN SMTP_ERR_EAI_AGAIN #define SMTP_ERR_TRY_AGAIN SMTP_ERR_EAI_AGAIN
#endif
/* libESMTP versions of some getaddrinfo error numbers */ /* libESMTP versions of some getaddrinfo error numbers */
#define SMTP_ERR_EAI_AGAIN 12 #define SMTP_ERR_EAI_AGAIN 12
#define SMTP_ERR_EAI_FAIL 11 #define SMTP_ERR_EAI_FAIL 11
#define SMTP_ERR_EAI_MEMORY 13 #define SMTP_ERR_EAI_MEMORY 13
#define SMTP_ERR_EAI_ADDRFAMILY 9 #define SMTP_ERR_EAI_ADDRFAMILY 9
#define SMTP_ERR_EAI_NODATA 10 #define SMTP_ERR_EAI_NODATA 10
#define SMTP_ERR_EAI_FAMILY 14 #define SMTP_ERR_EAI_FAMILY 14
#define SMTP_ERR_EAI_BADFLAGS 15 #define SMTP_ERR_EAI_BADFLAGS 15
#define SMTP_ERR_EAI_NONAME 16 #define SMTP_ERR_EAI_NONAME 16
#define SMTP_ERR_EAI_SERVICE 17 #define SMTP_ERR_EAI_SERVICE 17
 End of changes. 6 change blocks. 
2 lines changed or deleted 10 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/