Skip to content

Commit b514a50

Browse files
committed
transport_id should be known when selecting folders
1 parent 7d91e84 commit b514a50

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)