Skip to main content

Name

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

Synopsis

#include "misc/smtp_error_classify.h"

| int **smtp_error_classify** ( | response, |   | |   | domain, |   | |   | mid); |   |

const char * <var class="pdparam">response</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.

This is identical to calling smtp_error_classify_len.

Parameters

response

The buffer to parse.

domain

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

mid

Unused and may be NULL.

Return Values

This function returns the smtp classification id.

Threading

It is legal to call this function in any thread.

See Also

Was this page helpful?