From ed034f8989e711a99be36d0f148d8e65ad5d0c88 Mon Sep 17 00:00:00 2001 From: Sunil Nimmagadda Date: Wed, 2 Apr 2014 13:13:34 +0500 Subject: Use correct format of listing. --- session.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/session.c b/session.c index a042f58..fb2ae37 100644 --- a/session.c +++ b/session.c @@ -605,14 +605,15 @@ handle_list_all(struct session *s, struct imsg *imsg) { struct list_res *res = imsg->data; + res->idx += 1; /* POP3 index is 1 based */ if (res->uidl) if (strlen(res->u.hash)) - session_reply(s, "%s", res->u.hash); + session_reply(s, "%zu %s", res->idx, res->u.hash); else goto end; else if (res->u.sz) - session_reply(s, "%zu", res->u.sz); + session_reply(s, "%zu %zu", res->idx, res->u.sz); else goto end; -- cgit v1.2.3