Output the actual number of recent messages.
Showing
1 changed file
with
2 additions
and
2 deletions
... | @@ -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 | } | ... | ... |
-
Please register or sign in to post a comment