diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2002-08-27 10:48:54 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2002-08-27 10:48:54 +0000 |
commit | a462105a4ab41858eeaa724e0813c5da1bc0914e (patch) | |
tree | a6c4665566a445584a70e530f1d1b39036bf7e1b /frm | |
parent | 8d783c5133ded87d613221499a1719b016ed2755 (diff) | |
download | mailutils-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.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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) |