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
d059aada
...
d059aada44bdea02e26f799283edff0dc95913d5
authored
2003-08-22 14:00:23 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(create_flag): A three-state flag.
(_scan): Fixed behavior on non-existing folders.
1 parent
a5e4378e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
4 deletions
mh/folder.c
mh/folder.c
View file @
d059aad
...
...
@@ -104,7 +104,10 @@ static int action_pop ();
static
folder_action
action
=
action_print
;
int
show_all
=
0
;
/* List all folders. Raised by --all switch */
int
create_flag
=
0
;
/* Create non-existent folders (--create) */
int
create_flag
=
-
1
;
/* Create non-existent folders (--create).
-1: Prompt before creating
0: Do not create
1: Always create without prompting */
int
fast_mode
=
0
;
/* Fast operation mode. (--fast) */
int
print_header
=
0
;
/* Display the header line (--header) */
int
recurse
=
0
;
/* Recurse sub-folders */
...
...
@@ -282,9 +285,20 @@ _scan (const char *name, int depth)
if
(
!
dir
&&
errno
==
ENOENT
)
{
if
(
mh_check_folder
(
name
,
!
create_flag
))
return
;
dir
=
opendir
(
name
);
if
(
create_flag
)
{
if
(
mh_check_folder
(
name
,
create_flag
==
-
1
))
{
push_folder
=
0
;
return
;
}
dir
=
opendir
(
name
);
}
else
{
push_folder
=
0
;
return
;
}
}
if
(
!
dir
)
...
...
Please
register
or
sign in
to post a comment