projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added -clobber switch to mhstore(1) [Bug #11160].
[mmh]
/
uip
/
folder.c
diff --git
a/uip/folder.c
b/uip/folder.c
index
3e7c85d
..
4f43b9f
100644
(file)
--- a/
uip/folder.c
+++ b/
uip/folder.c
@@
-151,10
+151,10
@@
main (int argc, char **argv)
snprintf (buf, sizeof(buf), "%s [+folder] [msg] [switches]",
invo_name);
print_help (buf, switches, 1);
snprintf (buf, sizeof(buf), "%s [+folder] [msg] [switches]",
invo_name);
print_help (buf, switches, 1);
- done (1);
+ done (0);
case VERSIONSW:
print_version(invo_name);
case VERSIONSW:
print_version(invo_name);
- done (1);
+ done (0);
case ALLSW:
all = 1;
case ALLSW:
all = 1;
@@
-341,13
+341,13
@@
main (int argc, char **argv)
/*
* Scan the folders
*/
/*
* Scan the folders
*/
+ /* change directory to base of nmh directory for crawl_folders */
+ if (chdir (nmhdir) == NOTOK)
+ adios (nmhdir, "unable to change directory to");
if (all || ftotal > 0) {
/*
* If no folder is given, do them all
*/
if (all || ftotal > 0) {
/*
* If no folder is given, do them all
*/
- /* change directory to base of nmh directory for crawl_folders */
- if (chdir (nmhdir) == NOTOK)
- adios (nmhdir, "unable to change directory to");
if (!argfolder) {
if (msg)
admonish (NULL, "no folder given for message %s", msg);
if (!argfolder) {
if (msg)
admonish (NULL, "no folder given for message %s", msg);
@@
-458,6
+458,8
@@
static boolean
get_folder_info_callback (char *fold, void *baton)
{
boolean crawl_children;
get_folder_info_callback (char *fold, void *baton)
{
boolean crawl_children;
+ NMH_UNUSED (baton);
+
get_folder_info_body (fold, NULL, &crawl_children);
fflush (stdout);
return crawl_children;
get_folder_info_body (fold, NULL, &crawl_children);
fflush (stdout);
return crawl_children;