From 24602ed8a8caa39e17d3ad69260df08015706132 Mon Sep 17 00:00:00 2001 From: link2xt Date: Mon, 8 Feb 2021 03:51:31 +0300 Subject: [PATCH] Use .first_word() to get enhanced status code (#2202) .get(0) gets the whole first line --- src/job.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/job.rs b/src/job.rs index 5156b528e..a4747136a 100644 --- a/src/job.rs +++ b/src/job.rs @@ -272,7 +272,7 @@ impl Job { // Other enhanced status codes, such as Postfix // "550 5.1.1 : Recipient address rejected: User unknown in local recipient table" // are not ignored. - response.message.get(0) == Some(&"5.5.0".to_string()) + response.first_word() == Some(&"5.5.0".to_string()) } _ => false, };