mirror of
https://github.com/pimalaya/himalaya.git
synced 2026-06-17 13:17:55 +08:00
make pagination starting at 1 instead of 0 (#186)
This commit is contained in:
+2
-2
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user