Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
c48ce2b1
...
c48ce2b12ea3e0048a0628b611e5b0993370dc9f
authored
2003-08-12 20:00:33 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(main): Display "no messages in ..." warning for empty folders.
1 parent
de88b2bb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletions
mh/scan.c
mh/scan.c
View file @
c48ce2b
...
...
@@ -171,6 +171,7 @@ main (int argc, char **argv)
int
index
;
mailbox_t
mbox
;
int
status
;
size_t
total
=
0
;
/* Native Language Support */
mu_init_nls
();
...
...
@@ -194,7 +195,6 @@ main (int argc, char **argv)
/* Fast approach */
observer_t
observer
;
observable_t
observable
;
size_t
total
;
print_header
(
mbox
);
...
...
@@ -207,6 +207,7 @@ main (int argc, char **argv)
}
else
{
mailbox_messages_count
(
mbox
,
&
total
);
mh_msgset_parse
(
mbox
,
&
msgset
,
argc
,
argv
,
"all"
);
if
(
reverse
)
...
...
@@ -216,6 +217,14 @@ main (int argc, char **argv)
status
=
mh_iterate
(
mbox
,
&
msgset
,
list_message
,
NULL
);
}
if
(
total
==
0
)
{
url_t
url
=
NULL
;
mailbox_get_url
(
mbox
,
&
url
);
mh_error
(
_
(
"no messages in %s"
),
url_to_string
(
url
));
}
clear_screen
();
mh_global_save_state
();
...
...
Please
register
or
sign in
to post a comment