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
aa61bbaa
...
aa61bbaaaa24a38eba2ed09a1939600766122e40
authored
2004-06-03 21:45:49 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Minor fix
1 parent
34a5e544
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
mail/file.c
mail/file.c
View file @
aa61bba
...
...
@@ -79,15 +79,16 @@ mail_file (int argc, char **argv)
url_t
url
;
mailbox_t
newbox
=
NULL
;
char
*
name
=
mail_expand_name
(
argv
[
1
]);
int
status
;
if
(
!
name
)
return
1
;
if
(
mailbox_create_default
(
&
newbox
,
name
)
!=
0
||
mailbox_open
(
newbox
,
MU_STREAM_RDWR
)
!=
0
)
if
(
(
status
=
mailbox_create_default
(
&
newbox
,
name
)
)
!=
0
||
(
status
=
mailbox_open
(
newbox
,
MU_STREAM_RDWR
)
)
!=
0
)
{
mailbox_destroy
(
&
newbox
);
util_error
(
_
(
"can't open mailbox %s: %s"
),
name
,
mu_strerror
(
errno
));
util_error
(
_
(
"can't open mailbox %s: %s"
),
name
,
mu_strerror
(
status
));
free
(
name
);
return
1
;
}
...
...
Please
register
or
sign in
to post a comment