summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2021-04-18 16:42:27 +0300
committerSergey Poznyakoff <gray@gnu.org>2021-04-18 16:42:27 +0300
commitaa77ed09b158a64bf7c3259ddd7f275abf017eb2 (patch)
treeebc4f21bad87686bab5b1c4930046e93d0f17b58
parentc0af3be2fcee73c1a61f58572ecef1ef3f385015 (diff)
downloadmailutils-aa77ed09b158a64bf7c3259ddd7f275abf017eb2.tar.gz
mailutils-aa77ed09b158a64bf7c3259ddd7f275abf017eb2.tar.bz2
mbox,dotmail: fix the _message_unseen method
* libproto/dotmail/dotmail.c (dotmail_message_unseen): Set return value to 0 and return success if there are no unseen messages. * libproto/mbox/mboxrd.c (mboxrd_message_unseen): Likewise.
-rw-r--r--libproto/dotmail/dotmail.c3
-rw-r--r--libproto/mbox/mboxrd.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/libproto/dotmail/dotmail.c b/libproto/dotmail/dotmail.c
index 0e30d4445..533032032 100644
--- a/libproto/dotmail/dotmail.c
+++ b/libproto/dotmail/dotmail.c
@@ -807,7 +807,8 @@ dotmail_message_unseen (mu_mailbox_t mailbox, size_t *pmsgno)
}
}
- return MU_ERR_NOENT;
+ *pmsgno = 0;
+ return 0;
}
/* Initialize the mailbox UID subsystem. See the Notes above. */
diff --git a/libproto/mbox/mboxrd.c b/libproto/mbox/mboxrd.c
index 631df451f..aec3ddf9b 100644
--- a/libproto/mbox/mboxrd.c
+++ b/libproto/mbox/mboxrd.c
@@ -936,7 +936,8 @@ mboxrd_message_unseen (mu_mailbox_t mailbox, size_t *pmsgno)
}
}
- return MU_ERR_NOENT;
+ *pmsgno = 0;
+ return 0;
}
/* Initialize the mailbox UID subsystem. See the Notes above. */

Return to:

Send suggestions and report system problems to the System administrator.