libESMTP Types
libESMTP Types¶
The following types are defined by libESMTP.
-
smtp_enumerate_messagecb_t¶
Typedef: Message callback.
Syntax
void smtp_enumerate_messagecb_t (smtp_message_t message, void *arg)
Parameters
smtp_message_t messageThe session.
void *argUser data passed to smtp_enumerate_messages().
Description
Callback function to handle a message.
-
smtp_enumerate_recipientcb_t¶
Typedef: Recipient callback.
Syntax
void smtp_enumerate_recipientcb_t (smtp_recipient_t recipient, const char *mailbox, void *arg)
Parameters
smtp_recipient_t recipientThe recipient.
const char *mailboxMailbox name.
void *argUser data passed to smtp_enumerate_recipients().
Description
Callback to process a recipient.
-
enum rfc2822_timeouts¶
Specify timeout.
Constants
Timeout_GREETINGTimeout waiting for server greeting.
Timeout_ENVELOPETimeout for envelope responses.
Timeout_DATATimeout waiting for data transfer to begin.
Timeout_TRANSFERTimeout for data transfer phase.
Timeout_DATA2Timeout for data transfer phase.
Description
Timeout flags. In addition Timeout_OVERRIDE_RFC2822_MINIMUM may
be bitwise-ORed with above to override recommended minimum timeouts.
-
enum ret_flags¶
DSN request flags.
Constants
Ret_NOTSETDSN is not requested.
Ret_FULLRequest full message in DSN.
Ret_HDRSRequest only headers in DSN.
Description
DSN flags specifying requested notification.
-
enum notify_flags¶
DSN notification conditions.
Constants
Notify_NOTSETNotify options not requested.
Notify_NEVERNever notify.
Notify_SUCCESSNotify delivery success.
Notify_FAILURENotify delivery failure.
Notify_DELAYNotify delivery is delayed.
Description
DSN notify flags.
-
enum e8bitmime_body¶
Message body type.
Constants
E8bitmime_NOTSETBody type not declared.
E8bitmime_7BITBody conforms with RFC 5322.
E8bitmime_8BITMIMEBody uses 8 bit encoding.
E8bitmime_BINARYMIMEBody uses BINARYMIME encoding.
Description
8BITMIME extension flags.
-
enum by_mode¶
Delivery flags.
Constants
By_NOTSETDeliver-by notification not requested.
By_NOTIFYFIXME
By_RETURNFIXME
Description
DELIVERBY (RFC 2852) extension flags.
-
enum starttls_option¶
TLS mode options
Constants
Starttls_DISABLEDDo not use TLS, even if offered by the MTA.
Starttls_ENABLEDUse TLS if offered by the MTA.
Starttls_REQUIREDExit session if TLS is not offered by the MTA.
-
smtp_starttls_passwordcb_t¶
Typedef: Password callback signature.
Syntax
int smtp_starttls_passwordcb_t (char *buf, int buflen, int rwflag, void *arg)
Parameters
char *bufBuffer to receive the password.
int buflenLength of the buffer.
int rwflag0 for reading/decryption, 1 for writing/encryption.
void *argUser data passed to smtp_starttls_set_password_cb().
Description
The callback function declaration is cleverly chosen to be the same as the OpenSSL declaration.
Return
Actual length of password.