SMTP_CAPABILITY_VRFY = BIT(10),
SMTP_CAPABILITY_ETRN = BIT(11),
SMTP_CAPABILITY_XCLIENT = BIT(12),
+
+ SMTP_CAPABILITY__ORCPT = BIT(24),
};
struct smtp_capability_name {
const char *name;
ret = -1;
break;
}
- } else if ((caps & SMTP_CAPABILITY_DSN) != 0 &&
- strcmp(param.keyword, "ORCPT") == 0) {
+ } else if (((caps & SMTP_CAPABILITY_DSN) != 0 ||
+ (caps & SMTP_CAPABILITY__ORCPT) != 0) &&
+ strcmp(param.keyword, "ORCPT") == 0) {
if (smtp_params_rcpt_parse_orcpt
(&prparser, param.value) < 0) {
ret = -1;
{
if (params->orcpt.addr_type == NULL)
return;
- if ((caps & SMTP_CAPABILITY_DSN) == 0)
+ if ((caps & SMTP_CAPABILITY_DSN) == 0 &&
+ (caps & SMTP_CAPABILITY__ORCPT) == 0)
return;
/* ORCPT=<address>: RFC 3461 */