Use .first_word() to get enhanced status code (#2202)

.get(0) gets the whole first line
This commit is contained in:
link2xt
2021-02-08 03:51:31 +03:00
committed by GitHub
parent e741cb3646
commit 24602ed8a8

View File

@@ -272,7 +272,7 @@ impl Job {
// Other enhanced status codes, such as Postfix
// "550 5.1.1 <foobar@example.org>: 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,
};