mirror of
https://github.com/chatmail/core.git
synced 2026-04-17 21:46:35 +03:00
Use .first_word() to get enhanced status code (#2202)
.get(0) gets the whole first line
This commit is contained in:
@@ -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,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user