#ifndef SMTP_PARAMS_H
#define SMTP_PARAMS_H
#include "array-decl.h"
#include "smtp-common.h"
struct smtp_param;
enum smtp_param_mail_body_type {
};
enum smtp_param_mail_ret {
};
enum smtp_param_rcpt_notify {
};
struct smtp_param {
const char *keyword;
const char *value;
};
struct smtp_params_mail {
/* AUTH: RFC 4954 */
/* BODY: RFC 6152 */
struct {
const char *ext;
} body;
/* ENVID: RFC 3461, Section 4.4 */
const char *envid;
/* RET: RFC 3461, Section 4.3 */
/* SIZE: RFC 1870 */
/* extra parameters */
};
struct smtp_params_rcpt {
/* ORCPT: RFC 3461, Section 4.2 */
struct {
const char *addr_type;
/* addr_type=rfc822 */
/* raw value */
const char *addr_raw;
} orcpt;
/* NOTIFY: RFC 3461, Section 4.1 */
/* extra parameters */
};
enum smtp_param_parse_error {
};
/*
* Parser
*/
/*
* MAIL parameters
*/
struct smtp_params_mail *params_r,
const char **error_r);
ATTR_NULL(3);
enum smtp_capability caps,
const struct smtp_params_mail *params);
const struct smtp_param *
const char *keyword);
/*
* RCPT parameters
*/
struct smtp_params_rcpt *params_r,
const char **error_r);
ATTR_NULL(3);
enum smtp_capability caps,
const struct smtp_params_rcpt *params);
const struct smtp_param *
const char *keyword);
const struct smtp_params_rcpt *params2);
#endif