Make URL joining more robust

This commit is contained in:
2024-07-22 16:39:59 -07:00
parent ad8fb77857
commit bfd5e12bea
3 changed files with 40 additions and 33 deletions

View File

@@ -179,7 +179,7 @@ pub async fn thread(
.get_first_value("date")
.and_then(|d| mailparse::dateparse(&d).ok());
let cid_prefix = shared::urls::cid_prefix(None, &id);
let base_url = Url::parse("https://there-should-be-no-relative-urls-in-email").unwrap();
let base_url = None;
let body = match extract_body(&m, &id)? {
Body::PlainText(PlainText { text, content_tree }) => {
let text = if text.len() > MAX_RAW_MESSAGE_SIZE {