Mark uidl correctly in list_res for the terminal. Fixes UIDL command
authorSunil Nimmagadda <sunil@nimmagadda.net>
Fri, 11 Apr 2014 10:06:47 +0500
changeset 18 1d773aa5e87e
parent 17 596dec2978b2
child 19 3d14d6437543
Mark uidl correctly in list_res for the terminal. Fixes UIDL command on an empty maildrop.
maildrop.c
--- a/maildrop.c	Fri Apr 11 10:01:48 2014 +0500
+++ b/maildrop.c	Fri Apr 11 10:06:47 2014 +0500
@@ -328,6 +328,7 @@
 		    "maildrop_list");
 	}
 	
+	res.uidl = *uidl;
 	/* terminal sentinel: hash = "" and sz = 0 */
 	if (*uidl)
 		strlcpy(res.u.hash, "", sizeof(res.u.hash));