aboutsummaryrefslogtreecommitdiff
path: root/src/mail/incoming.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-07-21 12:50:44 +0200
committerAlex Auvolat <alex@adnab.me>2022-07-21 12:50:44 +0200
commit441730e1f7a27541d52d1aaccc59a8204a96d079 (patch)
tree793b5f3cf1fede10881de7cca165023ad4966800 /src/mail/incoming.rs
parent54c467d3f77fae964400e9c1d78d32d9067c3b0f (diff)
downloadaerogramme-441730e1f7a27541d52d1aaccc59a8204a96d079.tar.gz
aerogramme-441730e1f7a27541d52d1aaccc59a8204a96d079.zip
Fix open_mailbox
Diffstat (limited to 'src/mail/incoming.rs')
-rw-r--r--src/mail/incoming.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mail/incoming.rs b/src/mail/incoming.rs
index bc579ed..26ca52a 100644
--- a/src/mail/incoming.rs
+++ b/src/mail/incoming.rs
@@ -109,7 +109,7 @@ async fn incoming_mail_watch_process_internal(
if Some(id) != inbox.as_ref().map(|b| b.id) {
match user.open_mailbox_by_id(id, uidvalidity).await {
Ok(mb) => {
- inbox = mb;
+ inbox = Some(mb);
}
Err(e) => {
inbox = None;