Skip to content

Commit

Permalink
chk_cyrus: Fix fatal error on nonexistent mailboxes.
Browse files Browse the repository at this point in the history
Signed-off-by: David Caldwell <[email protected]>
  • Loading branch information
caldwell committed Feb 10, 2024
1 parent da14a17 commit f5a351f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions imap/chk_cyrus.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
#include "mailbox.h"
#include "map.h"
#include "xmalloc.h"
#include "imap_err.h"

static void usage(void)
{
Expand All @@ -82,6 +83,9 @@ static int chkmbox(struct findall_data *data, void *rock __attribute__((unused))

r = mboxlist_lookup(name, &mbentry, NULL);

if (r == IMAP_MAILBOX_NONEXISTENT)
return 0;

/* xxx reserved mailboxes? */

if (r) {
Expand Down

0 comments on commit f5a351f

Please sign in to comment.