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
34becd65
...
34becd653a1625f2ba1f77917d13f16110f704cd
authored
2002-09-18 21:18:20 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(main): Use mh_open_folder.
1 parent
c7578789
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
19 deletions
mh/inc.c
mh/inc.c
View file @
34becd6
...
...
@@ -187,24 +187,7 @@ main (int argc, char **argv)
exit
(
1
);
}
/* Select and open output mailbox */
if
(
mh_check_folder
(
current_folder
))
exit
(
0
);
if
(
mailbox_create_default
(
&
output
,
current_folder
))
{
mh_error
(
"Can't create output mailbox %s: %s"
,
current_folder
,
strerror
(
errno
));
exit
(
1
);
}
if
(
mailbox_open
(
output
,
MU_STREAM_RDWR
|
MU_STREAM_CREAT
))
{
mh_error
(
"Can't open mailbox %s: %s"
,
current_folder
,
strerror
(
errno
));
exit
(
1
);
}
output
=
mh_open_folder
(
current_folder
,
1
);
if
(
mailbox_messages_count
(
output
,
&
lastmsg
)
!=
0
)
{
mh_error
(
"Can not read output mailbox"
);
...
...
@@ -242,7 +225,7 @@ main (int argc, char **argv)
if
(
n
==
1
&&
changecur
)
{
message_t
msg
;
message_t
msg
=
NULL
;
mailbox_get_message
(
output
,
lastmsg
+
1
,
&
msg
);
mh_message_number
(
msg
,
&
current_message
);
...
...
Please
register
or
sign in
to post a comment