summaryrefslogtreecommitdiff
path: root/frm
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2002-08-27 10:48:54 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2002-08-27 10:48:54 +0000
commita462105a4ab41858eeaa724e0813c5da1bc0914e (patch)
treea6c4665566a445584a70e530f1d1b39036bf7e1b /frm
parent8d783c5133ded87d613221499a1719b016ed2755 (diff)
downloadmailutils-a462105a4ab41858eeaa724e0813c5da1bc0914e.tar.gz
mailutils-a462105a4ab41858eeaa724e0813c5da1bc0914e.tar.bz2
Fixed return status when the mailbox does not exist.
Diffstat (limited to 'frm')
-rw-r--r--frm/frm.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/frm/frm.c b/frm/frm.c
index 791f906f7..d1bd22c9a 100644
--- a/frm/frm.c
+++ b/frm/frm.c
@@ -353,14 +353,15 @@ main(int argc, char **argv)
mailbox_get_url (mbox, &url);
if (status == ENOENT)
- status = 2;
- else
+ goto cleanup1;
+ else {
fprintf (stderr, "could not open mailbox %s: %s\n",
url_to_string (url),
mu_errstring(status));
goto cleanup;
}
+ }
if (! be_quiet)
{
@@ -396,6 +397,7 @@ cleanup:
return 3;
}
+ cleanup1:
if (show_summary)
printf ("You have %d messages\n", total);
if (show_query && have_new_mail)

Return to:

Send suggestions and report system problems to the System administrator.