Skip to content

Commit

Permalink
Add state string to smtp event structure
Browse files Browse the repository at this point in the history
  • Loading branch information
jknpark committed Jan 4, 2024
1 parent b133b79 commit a616037
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ingest/network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -338,13 +338,14 @@ pub struct Smtp {
pub to: String,
pub subject: String,
pub agent: String,
pub state: String,
}

impl Display for Smtp {
fn fmt(&self, f: &mut Formatter) -> std::fmt::Result {
write!(
f,
"{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}",
"{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}",
self.orig_addr,
self.orig_port,
self.resp_addr,
Expand All @@ -357,6 +358,7 @@ impl Display for Smtp {
as_str_or_default(&self.to),
as_str_or_default(&self.subject),
as_str_or_default(&self.agent),
as_str_or_default(&self.state),
)
}
}
Expand Down

0 comments on commit a616037

Please sign in to comment.