Commit 100949f4 100949f41e72aad0857f6f6849a906f594c8c6e3 by Alain Magloire

* mailbox/mbx_mbox.c (mbox_messages_count): This function does

	not call the observers, the callback function, on the mbox_scan()
	does.

	* frm/frm.c (main): call mailbox_scan () instead of
	mailbox_messages_count () since we want to be notified.
1 parent f5ead139
2001-07-18 Alain Magloire
* mailbox/mbx_mbox.c (mbox_messages_count): This function does
not call the observers, the callback function, on the mbox_scan()
does.
* frm/frm.c (main): call mailbox_scan () instead of
mailbox_messages_count () since we want to be notified.
2001-07-12 Sam Roberts
* examples/mbox-dates.c: Added pop and imap records.
......
......@@ -339,7 +339,7 @@ main(int argc, char **argv)
observable_attach (observable, MU_EVT_MESSAGE_ADD, observer);
}
mailbox_messages_count (mbox, &total);
mailbox_scan (mbox, 1, &total);
if (! be_quiet)
{
......
......@@ -2038,7 +2038,7 @@ mbox_messages_count (mailbox_t mailbox, size_t *pcount)
return EINVAL;
if (! mbox_is_updated (mailbox))
return mbox_scan0 (mailbox, mud->messages_count, pcount, 1);
return mbox_scan0 (mailbox, mud->messages_count, pcount, 0);
if (pcount)
*pcount = mud->messages_count;
......