summaryrefslogtreecommitdiff
path: root/libmu_sieve
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2016-12-21 12:46:03 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2016-12-21 13:16:24 +0200
commit4323d352150c7af79b9f1699d2130c4cae1e4b88 (patch)
tree38fda64d51035a7d623a22509653976918ef66b2 /libmu_sieve
parent9f1d5ced7ae7ba2489e5c3908b846f1c3f30889f (diff)
downloadmailutils-4323d352150c7af79b9f1699d2130c4cae1e4b88.tar.gz
mailutils-4323d352150c7af79b9f1699d2130c4cae1e4b88.tar.bz2
imap: fix LIST "" "mbox"
* imap4d/list.c (imap4d_list): Move the longest directory prefix to the reference. * imap4d/tests/list.at: New testcase. * libmu_sieve/tests.c: Fix bug introduced by previous commit
Diffstat (limited to 'libmu_sieve')
-rw-r--r--libmu_sieve/tests.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/libmu_sieve/tests.c b/libmu_sieve/tests.c
index 29864e7e6..34beac688 100644
--- a/libmu_sieve/tests.c
+++ b/libmu_sieve/tests.c
@@ -71,15 +71,12 @@ retrieve_address (void *item, void *data, size_t idx, char **pval)
return MU_ERR_NOENT;
rc = mu_address_create (&ap->addr, val);
free (val);
- switch (rc)
- {
- case MU_ERR_EMPTY_ADDRESS:
- case MU_ERR_NOENT:
- return MU_ERR_NOENT;
-
- default:
- return rc;
- }
+ if (rc)
+ {
+ if (rc == MU_ERR_EMPTY_ADDRESS)
+ rc = MU_ERR_NOENT;
+ return rc;
+ }
}
rc = ap->aget (ap->addr, idx+1, pval);

Return to:

Send suggestions and report system problems to the System administrator.