Compare commits

..

No commits in common. "f12979c0be6f0de6aa113ef8e9a29c3ca854cb36" and "bbdc35061c6a12b97334a3ce8f2abc38e7037211" have entirely different histories.

5 changed files with 13 additions and 20 deletions

16
Cargo.lock generated
View File

@ -3034,7 +3034,7 @@ dependencies = [
[[package]]
name = "letterbox-notmuch"
version = "0.17.20"
version = "0.17.19"
dependencies = [
"itertools",
"log",
@ -3049,7 +3049,7 @@ dependencies = [
[[package]]
name = "letterbox-procmail2notmuch"
version = "0.17.20"
version = "0.17.19"
dependencies = [
"anyhow",
"clap",
@ -3062,7 +3062,7 @@ dependencies = [
[[package]]
name = "letterbox-server"
version = "0.17.20"
version = "0.17.19"
dependencies = [
"ammonia",
"anyhow",
@ -3080,8 +3080,8 @@ dependencies = [
"futures 0.3.31",
"headers",
"html-escape",
"letterbox-notmuch 0.17.20",
"letterbox-shared 0.17.20",
"letterbox-notmuch 0.17.19",
"letterbox-shared 0.17.19",
"linkify",
"lol_html",
"mailparse",
@ -3120,10 +3120,10 @@ dependencies = [
[[package]]
name = "letterbox-shared"
version = "0.17.20"
version = "0.17.19"
dependencies = [
"build-info",
"letterbox-notmuch 0.17.20",
"letterbox-notmuch 0.17.19",
"regex",
"serde",
"sqlx",
@ -3133,7 +3133,7 @@ dependencies = [
[[package]]
name = "letterbox-web"
version = "0.17.20"
version = "0.17.19"
dependencies = [
"build-info",
"build-info-build",

View File

@ -8,7 +8,7 @@ authors = ["Bill Thiede <git@xinu.tv>"]
edition = "2021"
license = "UNLICENSED"
publish = ["xinu"]
version = "0.17.20"
version = "0.17.19"
repository = "https://git.z.xinu.tv/wathiede/letterbox"
[profile.dev]

View File

@ -27,8 +27,8 @@ css-inline = "0.14.4"
futures = "0.3.31"
headers = "0.4.0"
html-escape = "0.2.13"
letterbox-notmuch = { path = "../notmuch", version = "0.17.20", registry = "xinu" }
letterbox-shared = { path = "../shared", version = "0.17.20", registry = "xinu" }
letterbox-notmuch = { path = "../notmuch", version = "0.17.19", registry = "xinu" }
letterbox-shared = { path = "../shared", version = "0.17.19", registry = "xinu" }
linkify = "0.10.0"
lol_html = "2.3.0"
mailparse = "0.16.1"

View File

@ -987,14 +987,7 @@ pub async fn label_unprocessed(
let id = format!("id:{id}");
let files = nm.files(&id)?;
// Only process the first file path is multiple files have the same id
let Some(path) = files.iter().next() else {
error!("No files for message-ID {id}");
let t = "Letterbox/Bad";
nm.tag_add(t, &id)?;
let t = "unprocessed";
nm.tag_remove(t, &id)?;
continue;
};
let path = files.iter().next().unwrap();
let file = File::open(&path)?;
info!("parsing {path}");
let mmap = unsafe { MmapOptions::new().map(&file)? };

View File

@ -12,7 +12,7 @@ version.workspace = true
[dependencies]
build-info = "0.0.40"
letterbox-notmuch = { path = "../notmuch", version = "0.17.20", registry = "xinu" }
letterbox-notmuch = { path = "../notmuch", version = "0.17.19", registry = "xinu" }
regex = "1.11.1"
serde = { version = "1.0.219", features = ["derive"] }
sqlx = "0.8.5"