Expand description
Retrieve patches from sources like lore.kernel.org.
§Example
use melib::{utils::patch_retrieve::*, MessageID};
let lore = PublicInboxNNTP {
server_hostname: "nntp.lore.kernel.org".to_string(),
port: None,
};
let msg_id = "20240910-rust-pl011-v10-8-85a89ee33c40@linaro.org";
let mail = futures::executor::block_on(
lore.fetch("qemu-devel.nongnu.org", MessageID::new(msg_id))
.unwrap(),
)
.unwrap();
println!("{}", String::from_utf8_lossy(&mail.as_mbox()));