Skip to content

Commit eba2a8f

Browse files
committed
transport_id should be known when selecting folders
1 parent b359413 commit eba2a8f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/imap/select_folder.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,11 @@ impl ImapSession {
147147
}
148148
};
149149
let transport_id = self.transport_id();
150+
151+
// Folders should not be selected when transport_id is not assigned yet
152+
// because we cannot save UID validity then.
153+
debug_assert!(transport_id > 0);
154+
150155
let mailbox = self
151156
.selected_mailbox
152157
.as_mut()

0 commit comments

Comments
 (0)