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
1 2001-07-18 Alain Magloire
2
3 * mailbox/mbx_mbox.c (mbox_messages_count): This function does
4 not call the observers, the callback function, on the mbox_scan()
5 does.
6
7 * frm/frm.c (main): call mailbox_scan () instead of
8 mailbox_messages_count () since we want to be notified.
9
1 2001-07-12 Sam Roberts 10 2001-07-12 Sam Roberts
2 11
3 * examples/mbox-dates.c: Added pop and imap records. 12 * examples/mbox-dates.c: Added pop and imap records.
......
...@@ -339,7 +339,7 @@ main(int argc, char **argv) ...@@ -339,7 +339,7 @@ main(int argc, char **argv)
339 observable_attach (observable, MU_EVT_MESSAGE_ADD, observer); 339 observable_attach (observable, MU_EVT_MESSAGE_ADD, observer);
340 } 340 }
341 341
342 mailbox_messages_count (mbox, &total); 342 mailbox_scan (mbox, 1, &total);
343 343
344 if (! be_quiet) 344 if (! be_quiet)
345 { 345 {
......
...@@ -2038,7 +2038,7 @@ mbox_messages_count (mailbox_t mailbox, size_t *pcount) ...@@ -2038,7 +2038,7 @@ mbox_messages_count (mailbox_t mailbox, size_t *pcount)
2038 return EINVAL; 2038 return EINVAL;
2039 2039
2040 if (! mbox_is_updated (mailbox)) 2040 if (! mbox_is_updated (mailbox))
2041 return mbox_scan0 (mailbox, mud->messages_count, pcount, 1); 2041 return mbox_scan0 (mailbox, mud->messages_count, pcount, 0);
2042 2042
2043 if (pcount) 2043 if (pcount)
2044 *pcount = mud->messages_count; 2044 *pcount = mud->messages_count;
......