summaryrefslogtreecommitdiff
path: root/readmsg
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2005-03-06 14:29:25 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2005-03-06 14:29:25 +0000
commit9228442de1e8cfa7bb819d8d4a85b1c05975a200 (patch)
treed0ee4e977d2c42cc758f9ed5402a93d269cb9550 /readmsg
parent6223b874ac531c041625acc49b9daff69607188e (diff)
downloadmailutils-9228442de1e8cfa7bb819d8d4a85b1c05975a200.tar.gz
mailutils-9228442de1e8cfa7bb819d8d4a85b1c05975a200.tar.bz2
Use a uniform way of filename quoting in diagnostic messages.
Diffstat (limited to 'readmsg')
-rw-r--r--readmsg/readmsg.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/readmsg/readmsg.c b/readmsg/readmsg.c
index f7f247b66..6bacf7d7d 100644
--- a/readmsg/readmsg.c
+++ b/readmsg/readmsg.c
@@ -245,9 +245,13 @@ main (int argc, char **argv)
status = mailbox_create_default (&mbox, mailbox_name);
if (status != 0)
{
- fprintf (stderr, _("Could not create mailbox <%s>: %s.\n"),
- mailbox_name ? mailbox_name : _("default"),
- mu_strerror(status));
+ if (mailbox_name)
+ fprintf (stderr, _("Could not create mailbox `%s': %s\n"),
+ mailbox_name,
+ mu_strerror(status));
+ else
+ fprintf (stderr, _("Could not create default mailbox: %s\n"),
+ mu_strerror(status));
exit (2);
}
@@ -265,7 +269,7 @@ main (int argc, char **argv)
url_t url = NULL;
mailbox_get_url (mbox, &url);
- fprintf (stderr, _("Could not open mailbox <%s>: %s.\n"),
+ fprintf (stderr, _("Could not open mailbox `%s': %s\n"),
url_to_string (url), mu_strerror(status));
exit (2);
}

Return to:

Send suggestions and report system problems to the System administrator.