summaryrefslogtreecommitdiffstats
path: root/melib/src/backends/imap/cache.rs
diff options
context:
space:
mode:
Diffstat (limited to 'melib/src/backends/imap/cache.rs')
-rw-r--r--melib/src/backends/imap/cache.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/melib/src/backends/imap/cache.rs b/melib/src/backends/imap/cache.rs
index ad2b1301..d89512f2 100644
--- a/melib/src/backends/imap/cache.rs
+++ b/melib/src/backends/imap/cache.rs
@@ -539,7 +539,7 @@ mod sqlite3_m {
}
}
tx.commit()?;
- let new_max_uid = self.max_uid(mailbox_hash)?;
+ let new_max_uid = self.max_uid(mailbox_hash).unwrap_or(0);
self.uid_store
.max_uids
.lock()