mirror of
https://github.com/chatmail/core.git
synced 2026-05-07 00:46:31 +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
|
// Other enhanced status codes, such as Postfix
|
||||||
// "550 5.1.1 <foobar@example.org>: Recipient address rejected: User unknown in local recipient table"
|
// "550 5.1.1 <foobar@example.org>: Recipient address rejected: User unknown in local recipient table"
|
||||||
// are not ignored.
|
// are not ignored.
|
||||||
response.message.get(0) == Some(&"5.5.0".to_string())
|
response.first_word() == Some(&"5.5.0".to_string())
|
||||||
}
|
}
|
||||||
_ => false,
|
_ => false,
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user