10 // sender rewriting scheme complaint
15 std::string mail_from
; // from
16 std::string rcpt_to_local_part
; // @our-domain.com
18 inline bool operator==(from_to
const& rhs
) const;
19 inline bool empty() const;
23 static std::string
enc_reply(from_to
const& reply_info
,
24 std::string_view secret
);
26 static std::optional
<from_to
> dec_reply(std::string_view addr
,
27 std::string_view secret
);
30 inline bool Reply::from_to::operator==(from_to
const& rhs
) const
32 return (mail_from
== rhs
.mail_from
) &&
33 (rcpt_to_local_part
== rhs
.rcpt_to_local_part
);
36 inline bool Reply::from_to::empty() const
38 return mail_from
.empty() && rcpt_to_local_part
.empty();
41 inline void Reply::from_to::clear()
44 rcpt_to_local_part
.clear();
47 #endif // REPLY_DOT_HPP