Rename all crates to start with letterbox-

This commit is contained in:
2025-02-13 09:48:24 -08:00
parent d1beaded09
commit 2076596f50
15 changed files with 82 additions and 73 deletions

View File

@@ -5,10 +5,10 @@ use std::{
time::Instant,
};
use letterbox_notmuch::Notmuch;
use log::{error, info, warn};
use mailparse::{parse_content_type, parse_mail, MailHeader, MailHeaderMap, ParsedMail};
use memmap::MmapOptions;
use notmuch::Notmuch;
use sqlx::PgPool;
use tracing::instrument;
@@ -43,7 +43,9 @@ pub fn is_notmuch_thread_or_id(id: &str) -> bool {
}
// TODO(wathiede): decide good error type
pub fn threadset_to_messages(thread_set: notmuch::ThreadSet) -> Result<Vec<Message>, ServerError> {
pub fn threadset_to_messages(
thread_set: letterbox_notmuch::ThreadSet,
) -> Result<Vec<Message>, ServerError> {
for t in thread_set.0 {
for _tn in t.0 {}
}
@@ -190,7 +192,7 @@ pub async fn thread(
.headers
.get_first_value("date")
.and_then(|d| mailparse::dateparse(&d).ok());
let cid_prefix = shared::urls::cid_prefix(None, &id);
let cid_prefix = letterbox_shared::urls::cid_prefix(None, &id);
let base_url = None;
let mut part_addr = Vec::new();
part_addr.push(id.to_string());