about summary refs log tree commit diff
path: root/mlist.c
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2018-01-01 18:44:59 +0100
committerLeah Neukirchen <leah@vuxu.org>2018-01-01 18:44:59 +0100
commitaf7d6750fd5d138914cf05f17836b3f87d2e880f (patch)
tree73df4b94f7c491eec0b4191b4810cc54f998f122 /mlist.c
parent3ebd4cc3a3f249fbb7ea63fd43b48bd8f9b8a4c3 (diff)
downloadmblaze-af7d6750fd5d138914cf05f17836b3f87d2e880f.tar.gz
mblaze-af7d6750fd5d138914cf05f17836b3f87d2e880f.tar.xz
mblaze-af7d6750fd5d138914cf05f17836b3f87d2e880f.zip
mlist: listarg: list empty Maildirs if no filtering took place
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);