Report which email failed to import when the blob is too large (fixes #22)

This commit is contained in:
Maurus Decimus
2026-07-17 17:16:34 +02:00
parent c572cacb5c
commit f35c6fd90a
4 changed files with 77 additions and 8 deletions
+4
View File
@@ -101,6 +101,10 @@ impl<'a> Uploader<'a> {
self.cache.remove(&local_id);
}
fn blob_len(&self, local_id: i64) -> Option<u64> {
db::blobs::blob_len(self.conn, local_id).ok().flatten()
}
fn take_touched(&mut self) -> Vec<i64> {
std::mem::take(&mut self.touched)
}