Skip to main content

smtp_command_event_data

Function smtp_command_event_data 

Source
pub fn smtp_command_event_data(command: &str, in_data: bool) -> Value
Expand description

The event data for one SMTP line: the line itself, plus what NetGet can tell from it.

answer_with names the action (and reply code) this particular line takes. A small model reused one action for a whole session - the 220 greeting for EHLO and MAIL, a 250 for a recipient the instruction said to refuse - and it follows a per-request hint far better than a general description. For MAIL FROM/RCPT TO the address and its domain are split out, because an instruction like “refuse any other domain” is a decision about the domain. in_data is whether a 354 has gone out and the terminating . has not arrived: then the line is message text, whatever it looks like.