make pagination starting at 1 instead of 0 (#186)

This commit is contained in:
Clément DOUIN
2021-08-06 13:33:51 +02:00
parent 97054d3133
commit 52e76d19e5
3 changed files with 11 additions and 4 deletions
+2 -2
View File
@@ -74,7 +74,7 @@ fn msg() {
// List messages
// TODO: check non-existance of \Seen flag
let msgs = imap_conn.list_msgs("INBOX", &10, &0).unwrap();
let msgs = imap_conn.list_msgs("INBOX", &10, &1).unwrap();
let msgs = if let Some(ref fetches) = msgs {
Msgs::from(fetches)
} else {
@@ -111,7 +111,7 @@ fn msg() {
.add_flags("INBOX", &msg_b.uid.to_string(), "\\Deleted")
.unwrap();
imap_conn.expunge("INBOX").unwrap();
assert!(imap_conn.list_msgs("INBOX", &10, &0).unwrap().is_none());
assert!(imap_conn.list_msgs("INBOX", &10, &1).unwrap().is_none());
// Logout
imap_conn.logout();