Skip to main content

esmtp_message_factory_state

Last updated March 2020

Name

esmtp_message_factory_state — Determine the state of a message

Synopsis

#include "esmtp_factory.h"

| (const char *) **esmtp_message_factory_state** ( | state); |   |

int <var class="pdparam">state</var>;

Description

Determine the state of a message.

Parameters

state

The integer representation of the message state.

Return Values

On success the return value will be one of the following:

const char *esmtp_states[] = {
  "just connected",              /* 0 */
  "sending banner",              /* 1 */
  "awaiting ehlo/helo",          /* 2 */
  "sending ehlo/helo response",  /* 3 */
  "awaiting mailfrom",           /* 4 */
  "sending mailfrom response",   /* 5 */
  "awaiting rcptto",             /* 6 */
  "sending rcptto response",     /* 7 */
  "data phase",                  /* 8 */
  "reading body",                /* 9 */
  "sending body response",       /* 10 */
  "async body handler",          /* 11 */
  "async body response",         /* 12 */
  "relaying denied",             /* 13 */
  "extension 1",                 /* 14 */
  "extension 2",                 /* 15 */
  "extension 3",                 /* 16 */
  "extension 4",                 /* 17 */
  "concurrency limit",           /* 18 */
  "rcptto list response",        /* 19 */
  "rcptto list final response",  /* 20 */
  "esmtp setup phase"            /* 21 */
};

On failure, unknown is returned.

Threading

It is legal to call this function in the Scheduler thread.

See Also

Was this page helpful?