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
559e294d
...
559e294dfb8379e2f6ee616070f0838da22b3523
authored
2001-06-26 14:04:26 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Use $LISTER.
1 parent
ffaf59d9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
21 deletions
mail/folders.c
mail/folders.c
View file @
559e294
...
...
@@ -16,7 +16,6 @@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "mail.h"
#include <dirent.h>
/*
* folders
...
...
@@ -25,8 +24,6 @@
int
mail_folders
(
int
argc
,
char
**
argv
)
{
DIR
*
dir
;
struct
dirent
*
dirent
;
char
*
path
;
struct
mail_env_entry
*
env
=
util_find_env
(
"folder"
);
...
...
@@ -37,24 +34,7 @@ mail_folders (int argc, char **argv)
}
path
=
util_fullpath
(
env
->
value
);
dir
=
opendir
(
path
);
if
(
!
dir
)
{
fprintf
(
ofile
,
"can't open directory `%s'
\n
"
,
path
);
free
(
path
);
return
1
;
}
while
(
dirent
=
readdir
(
dir
))
{
if
(
dirent
->
d_name
[
0
]
==
'.'
)
continue
;
fprintf
(
ofile
,
"%s
\n
"
,
dirent
->
d_name
);
}
closedir
(
dir
);
util_do_command
(
"! %s %s"
,
getenv
(
"LISTER"
),
path
);
free
(
path
);
return
0
;
...
...
Please
register
or
sign in
to post a comment