#ifndef SMTP_COMMAND_H
#define SMTP_COMMAND_H
struct smtp_command_limits {
/* Maximum size of command parameters, starting after first space */
/* Maximum size of authentication response */
/* Absolute maximum size of command data, beyond which the parser yields
a fatal error; i.e. closing the connection in the server. This should
be higher than a normal message size limit, which would return a
normal informative error. The limit here just serves to protect
against abuse. */
};
struct smtp_command {
const char *name;
const char *parameters;
};
static inline void
const struct smtp_command_limits *new_limits)
{
if (new_limits->max_parameters_size > 0)
if (new_limits->max_auth_size > 0)
if (new_limits->max_data_size > 0)
}
#endif