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
e429b2b6
...
e429b2b6ef80b1ffd204c797ef065868001a7697
authored
2000-05-19 01:52:21 +0000
by
Sean 'Shaleh' Perry
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fleshed out mh.c some more
1 parent
1a1d7c51
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
3 deletions
ChangeLog
libmailbox/mh.c
ChangeLog
View file @
e429b2b
2000-05-18 Sean 'Shaleh' Perry <shaleh@debian.org>
* libmailbox/mh.c: fleshed out mh_open() some more
2000-05-15 Sean 'Shaleh' Perry <shaleh@debian.org>
* libmailbox/*: ran some files thru emacs indent, I think I introduced
...
...
libmailbox/mh.c
View file @
e429b2b
...
...
@@ -45,19 +45,29 @@ mh_open (mailbox * mbox)
return
errno
;
/* set by opendir() */
/* process directory */
while
(
(
entry
=
readdir
(
data
->
dir
))
&&
(
entry
!=
NULL
))
while
(
entry
=
readdir
(
data
->
dir
))
{
/* TODO: deal with mh dot files */
unsigned
long
seq_num
;
char
*
foo
=
NULL
;
if
(
entry
->
d_name
[
0
]
==
'.'
)
{
if
(
strcmp
(
entry
->
d_name
,
".mh_sequences"
==
0
))
/* TODO: deal with mh sequence files */
;
continue
;
}
if
(
entry
->
d_name
[
0
]
==
','
)
/* file marked for deletion */
;
/* TODO: handle ERANGE */
seq_num
=
strtoul
(
entry
->
d_name
,
&
foo
,
10
);
if
(
*
foo
!=
'\0'
)
/* invalid sequence number */
continue
;
/* TODO: handle this better? */
printf
(
"message: %ld
\r
"
,
seq_num
);
mbox
->
messages
++
;
}
#if 0
mbox
->
_data
=
data
;
#if 0
mbox->_close = mh_close;
mbox->_delete = mh_delete;
mbox->_undelete = mh_undelete;
...
...
Please
register
or
sign in
to post a comment