#ifndef SMTP_REPLY_H
#define SMTP_REPLY_H
struct smtp_reply_enhanced_code {
/* x:class, y:subject, z:detail;
x==0 means no enhanced code present
*/
unsigned int x, y, z;
};
struct smtp_reply {
unsigned int status;
const char *const *text_lines;
};
#define SMTP_REPLY_ENH_CODE(x, y, z) \
(const struct smtp_reply_enhanced_code){(x), (y), (z)}
static inline bool
{
}
static inline bool
{
}
static inline bool
{
}
static inline bool
{
}
const char *text);
const char *
/* Write the SMTP reply as a sequence of lines according to the SMTP syntax,
each terminated by CRLF. */
/* Write the SMTP reply as a single line without CRLF, even when it consists
of multiple lines. This function cannot be used with internal client error
replies (status code >= 560). */
/* Create a log line from the SMTP reply. This also properly handles internal
client error replies (status_code >= 560). */
const struct smtp_reply *src);
const struct smtp_reply *src);
#endif