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
da88ef54
...
da88ef5409ea73f0de3d4bf66b766f2ee297d8c1
authored
2002-08-26 17:06:16 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Don't bail out if the mailbox does not exist.
1 parent
71152562
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
frm/frm.c
frm/frm.c
View file @
da88ef5
...
...
@@ -38,6 +38,7 @@
#include <mailutils/observer.h>
#include <mailutils/registrar.h>
#include <mailutils/stream.h>
#include <mailutils/url.h>
static
char
*
show_field
;
static
int
show_to
;
...
...
@@ -348,9 +349,16 @@ main(int argc, char **argv)
if
(
status
!=
0
)
{
fprintf
(
stderr
,
"could not open mailbox <%s>: %s
\n
"
,
mailbox_name
?
mailbox_name
:
"default"
,
url_t
url
=
NULL
;
mailbox_get_url
(
mbox
,
&
url
);
if
(
status
==
ENOENT
)
status
=
2
;
else
fprintf
(
stderr
,
"could not open mailbox %s: %s
\n
"
,
url_to_string
(
url
),
mu_errstring
(
status
));
goto
cleanup
;
}
...
...
@@ -366,8 +374,11 @@ main(int argc, char **argv)
if
(
status
!=
0
)
{
url_t
url
=
NULL
;
mailbox_get_url
(
mbox
,
&
url
);
fprintf
(
stderr
,
"could not scan mailbox <%s>: %s
\n
"
,
mailbox_name
?
mailbox_name
:
"default"
,
url_to_string
(
url
)
,
mu_errstring
(
status
));
goto
cleanup
;
}
...
...
Please
register
or
sign in
to post a comment