Commit 7a626fa1 7a626fa193675c391c758be4543523880bf86e70 by Sergey Poznyakoff

Bugfixes.

* imap4d/status.c (imap4d_status): Remove extra whitespace
before closing parenthesis in untagged reply.
1 parent 34a9b541
1 2008-08-16 Sergey Poznyakoff <gray@gnu.org.ua> 1 2008-08-16 Sergey Poznyakoff <gray@gnu.org.ua>
2 2
3 * imap4d/status.c (imap4d_status): Remove extra whitespace
4 before closing parenthesis in untagged reply.
5
3 Bugfixes. 6 Bugfixes.
4 * imap4d/fetch.c (parse_fetch_body): Bugfix, allow another tokens 7 * imap4d/fetch.c (parse_fetch_body): Bugfix, allow another tokens
5 after BODY. 8 after BODY.
......
...@@ -97,6 +97,7 @@ imap4d_status (struct imap4d_command *command, imap4d_tokbuf_t tok) ...@@ -97,6 +97,7 @@ imap4d_status (struct imap4d_command *command, imap4d_tokbuf_t tok)
97 status = mu_mailbox_open (smbox, MU_STREAM_READ); 97 status = mu_mailbox_open (smbox, MU_STREAM_READ);
98 if (status == 0) 98 if (status == 0)
99 { 99 {
100 int space_sent = 0;
100 int i = IMAP4_ARG_2; 101 int i = IMAP4_ARG_2;
101 char *item = imap4d_tokbuf_getarg (tok, i); 102 char *item = imap4d_tokbuf_getarg (tok, i);
102 103
...@@ -122,9 +123,14 @@ imap4d_status (struct imap4d_command *command, imap4d_tokbuf_t tok) ...@@ -122,9 +123,14 @@ imap4d_status (struct imap4d_command *command, imap4d_tokbuf_t tok)
122 123
123 if (count++ == 0) 124 if (count++ == 0)
124 util_send ("* STATUS %s (", name); 125 util_send ("* STATUS %s (", name);
126 else if (!space_sent)
127 {
128 space_sent = 1;
129 util_send (" ");
130 }
125 131
126 if (!fun (smbox)) 132 if (!fun (smbox))
127 util_send (" "); 133 space_sent = 0;
128 } 134 }
129 135
130 136
......