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
38716599
...
38716599e3f86ec0d4c27ae223b15b3d18f566a9
authored
2000-05-19 08:08:57 +0000
by
Sean 'Shaleh' Perry
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
*** empty log message ***
1 parent
1d95b447
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
libmailbox/mh.c
libmailbox/mh.c
View file @
3871659
...
...
@@ -28,17 +28,12 @@ int
mh_open
(
mailbox
*
mbox
)
{
int
i
;
char
old_dir
[
PATH_MAX
];
struct
dirent
*
entry
;
mh_data
*
data
;
if
(
mbox
==
NULL
)
return
EINVAL
;
if
(
getcwd
(
old_dir
,
PATH_MAX
)
==
NULL
)
old_dir
[
0
]
=
'\0'
;
chdir
(
mbox
->
name
);
data
=
malloc
(
sizeof
(
mh_data
));
data
->
dir
=
opendir
(
mbox
->
name
);
if
(
data
->
dir
==
NULL
)
...
...
@@ -49,6 +44,7 @@ mh_open (mailbox * mbox)
{
unsigned
long
seq_num
;
char
*
foo
=
NULL
;
char
fname
[
PATH_MAX
];
if
(
entry
->
d_name
[
0
]
==
'.'
)
{
if
(
strcmp
(
entry
->
d_name
,
".mh_sequences"
)
==
0
)
...
...
@@ -80,7 +76,7 @@ mh_open (mailbox * mbox)
#endif
chdir
(
old_dir
);
fprintf
(
stderr
,
"
\n
%d messages read
\n
"
,
mbox
->
messages
);
fprintf
(
stderr
,
"
\
r\
n
%d messages read
\n
"
,
mbox
->
messages
);
return
0
;
}
...
...
Please
register
or
sign in
to post a comment