From 3d1ad714aca03de7c3d9212a1d1b6848ca8f83b6 Mon Sep 17 00:00:00 2001
From: Sunil Nimmagadda <sunil@nimmagadda.net>
Date: Fri, 11 Apr 2014 10:06:17 +0500
Subject: Mark uidl correctly in list_res for the terminal. Fixes UIDL command
 on an empty maildrop.

---
 maildrop.c | 1 +
 1 file changed, 1 insertion(+)

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));
-- 
cgit v1.2.3