summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSunil Nimmagadda <sunil@nimmagadda.net>2014-04-11 10:06:17 +0500
committerSunil Nimmagadda <sunil@nimmagadda.net>2014-04-11 10:06:17 +0500
commit3d1ad714aca03de7c3d9212a1d1b6848ca8f83b6 (patch)
tree48c85a08ecc94169900c98570d20e54fff8baaec
parentaaf9b53332b4afd163caf8b5b1311247c81bbce9 (diff)
Mark uidl correctly in list_res for the terminal. Fixes UIDL command
on an empty maildrop.
-rw-r--r--maildrop.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/maildrop.c b/maildrop.c
index f72e583..e18983e 100644
--- a/maildrop.c
+++ b/maildrop.c
@@ -328,6 +328,7 @@ list_all(struct imsgev *iev, struct imsg *imsg, struct m_backend *mb)
"maildrop_list");
}
+ res.uidl = *uidl;
/* terminal sentinel: hash = "" and sz = 0 */
if (*uidl)
strlcpy(res.u.hash, "", sizeof(res.u.hash));