Commit 9572dc81 9572dc81dd060ad6a2a5ccae13efbb7ccf0608ef by Sergey Poznyakoff

frm: fix counters when given multiple mailboxes.

* frm/frm.c (frm): Initialize counters.
* frm/tests/testsuite.at: Test multiple mailboxes.
1 parent 1ec3df9a
......@@ -261,6 +261,7 @@ frm (char *mailbox_name)
int status;
selected = 0;
counter.new = counter.read = counter.unread = 0;
frm_scan (mailbox_name, frm_select, &total);
if (show_summary)
......
......@@ -107,3 +107,19 @@ FRMTEST([frm -l on long headers],[frm07],
])
m4_popdef([FRM_MAILBOX])
AT_SETUP([multiple mailboxes])
AT_KEYWORDS([frm08])
AT_CHECK([
cp $abs_top_srcdir/testsuite/spool/mbox $abs_top_srcdir/testsuite/spool/mbox1 .
frm FRM_OPTIONS -qS mbox mbox1],
[1],
[mbox:
Folder contains 1 new message.
mbox1:
Folder contains 5 new messages.
])
AT_CLEANUP])
......