RFC9698 - JMAPACCESS Extension for IMAP

This commit is contained in:
mdecimus
2025-05-16 16:44:37 +02:00
parent 10bb4e5661
commit cee4149ef4
15 changed files with 18 additions and 24 deletions

View File

@@ -347,7 +347,7 @@ async fn https(
}
fn get_header(response: &Response, header: &'static str) -> trc::Result<String> {
match response.headers().get_all(header).iter().last() {
match response.headers().get_all(header).iter().next_back() {
Some(value) => Ok(value
.to_str()
.map_err(|err| trc::EventType::Acme(trc::AcmeEvent::Error).from_http_str_error(err))?

View File

@@ -258,8 +258,7 @@ impl Subscriber {
#[cfg(all(unix, not(target_os = "linux")))]
fn send_large_payload(&self, _payload: &[u8]) -> io::Result<usize> {
Err(io::Error::new(
io::ErrorKind::Other,
Err(std::io::Error::other(
"Large payloads not supported on non-Linux OS",
))
}