summaryrefslogtreecommitdiff
path: root/readmsg
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2003-01-26 13:48:34 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2003-01-26 13:48:34 +0000
commit594e5f5cccebdde93f349605998486280aca311c (patch)
tree78cb3795ea1e719a4bd0983963852e0a58c97098 /readmsg
parent2fce3d14de6bfd91076a514d4c13c809b17511d5 (diff)
downloadmailutils-594e5f5cccebdde93f349605998486280aca311c.tar.gz
mailutils-594e5f5cccebdde93f349605998486280aca311c.tar.bz2
Use mu_error instead of fprintf
Diffstat (limited to 'readmsg')
-rw-r--r--readmsg/readmsg.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/readmsg/readmsg.c b/readmsg/readmsg.c
index f5809fd2d..79775d81d 100644
--- a/readmsg/readmsg.c
+++ b/readmsg/readmsg.c
@@ -243,7 +243,8 @@ main (int argc, char **argv)
status = mailbox_create_default (&mbox, mailbox_name);
if (status != 0)
{
- fprintf (stderr, _("could not create - %s\n"), mu_strerror(status));
+ mu_error (_("could not create mailbox: %s"),
+ mu_strerror(status));
exit (2);
}
@@ -261,9 +262,9 @@ main (int argc, char **argv)
url_t url = NULL;
mailbox_get_url (mbox, &url);
- fprintf (stderr, _("can't open mailbox %s: %s\n"),
- url_to_string (url),
- mu_strerror(status));
+ mu_error (_("can't open mailbox %s: %s"),
+ url_to_string (url),
+ mu_strerror(status));
exit (2);
}
@@ -282,8 +283,8 @@ main (int argc, char **argv)
status = mailbox_get_message (mbox, set[i], &msg);
if (status != 0)
{
- fprintf (stderr, "mailbox_get_message - %s\n",
- mu_strerror (status));
+ mu_error ("mailbox_get_message: %s",
+ mu_strerror (status));
exit (2);
}

Return to:

Send suggestions and report system problems to the System administrator.