smtp_error_classify_len

March 26, 2020 Contributors

Name

smtp_error_classify_len — Classify the response code given in response to an SMTP command

Synopsis

#include "misc/smtp_error_classify.h"

| int **smtp_error_classify_len** ( | response, |   |
|   | len, |   |
|   | domain, |   |
|   | mid); |   |

const char * <var class="pdparam">response</var>;
int <var class="pdparam">len</var>;
const char * <var class="pdparam">domain</var>;
message_id * <var class="pdparam">mid</var>;

Description

Classify the response code given in response to an SMTP command.

Parameters

response

The buffer to parse, must be NUL terminated even though there is a len parameter.

len

The length of the buffer to parse.

domain

The domain the message is being sent to (for improved accuracy).

mid

Unused and may be NULL.

Return Values

The SMTP classification id.

Threading

It is legal to call this function in any thread.

See Also

SMTP-related Functions , smtp_error_classify and smtp_client_args_add