register_smtp_client_state — Register a custom state in the SMTP client state machine
int **register_smtp_client_state** ( | state, | |
| | insert_after
); | |
Register a custom state in the SMTP client state machine.
The SMTP client state machine is modular: external modules may register their own states to be called after a particular built-in or custom state.
The SMTP client state to register. All values of this structure (except for
smtp_state.closure) are copied to a static variable so memory for
statemay be released after registering it. For more information on this data structure see “smtp_state”.
The state ID to insert the client state after. Passing a value of
-1places the SMTP state at the beginning, prior to the banner state.
Returns an SMTP state ID computed by this function or -1 in the case of a failure.
It is only legal to call this function in the