Skip to content

Commit

Permalink
fix(all): stop logging email addresses into info level logs
Browse files Browse the repository at this point in the history
  • Loading branch information
paolobarbolini committed Feb 22, 2020
1 parent a440ae5 commit 159b896
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/smtp/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -467,25 +467,13 @@ impl<'a> Transport<'a> for SmtpTransport {
self
);

// Log the mail command
info!(
"{}: from=<{}>",
message_id,
match email.envelope().from() {
Some(address) => address.to_string(),
None => "".to_string(),
}
);

// Recipient
for to_address in email.envelope().to() {
try_smtp!(
self.client
.command(RcptCommand::new(to_address.clone(), vec![])),
self
);
// Log the rcpt command
info!("{}: to=<{}>", message_id, to_address);
}

// Data
Expand Down

0 comments on commit 159b896

Please sign in to comment.