From aa77ed09b158a64bf7c3259ddd7f275abf017eb2 Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Sun, 18 Apr 2021 16:42:27 +0300 Subject: 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. --- libproto/dotmail/dotmail.c | 3 ++- libproto/mbox/mboxrd.c | 3 ++- 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. */ -- cgit v1.2.1