Commit 8d58a988 8d58a9886af666246bf4a745e2b1fd1dbbdd785b by Sergey Poznyakoff

Output the actual number of recent messages.

1 parent 58cc46ab
...@@ -226,11 +226,11 @@ notify (void) ...@@ -226,11 +226,11 @@ notify (void)
226 size_t uid = 0; 226 size_t uid = 0;
227 mailbox_get_message (mbox, i, &msg); 227 mailbox_get_message (mbox, i, &msg);
228 message_get_uid (msg, &uid); 228 message_get_uid (msg, &uid);
229 if (!notify_uid (uid)) 229 notify_uid (uid);
230 recent++;
231 } 230 }
232 notify_deleted (); 231 notify_deleted ();
233 util_out (RESP_NONE, "%d EXISTS", total); 232 util_out (RESP_NONE, "%d EXISTS", total);
233 mailbox_messages_recent (mbox, &recent);
234 if (recent) 234 if (recent)
235 util_out (RESP_NONE, "%d RECENT", recent); 235 util_out (RESP_NONE, "%d RECENT", recent);
236 } 236 }
......