about summary refs log tree commit diff
path: root/mlist.c
diff options
context:
space:
mode:
Diffstat (limited to 'mlist.c')
-rw-r--r--mlist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mlist.c b/mlist.c
index 0e97943..18d00d1 100644
--- a/mlist.c
+++ b/mlist.c
@@ -204,7 +204,7 @@ listarg(char *arg)
 		if (!maildir)
 			listdir(arg);
 
-		if (iflag && imatched) {
+		if (iflag && (imatched || (maildir && !flagset))) {
 			tdirs++;
 			printf("%6ld unseen  %3ld flagged  %6ld msg  %s\n",
 			    iunseen, iflagged, icount, arg);