From 9228442de1e8cfa7bb819d8d4a85b1c05975a200 Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Sun, 6 Mar 2005 14:29:25 +0000 Subject: Use a uniform way of filename quoting in diagnostic messages. --- frm/common.c | 17 ++++++++++------- frm/from.c | 2 +- 2 files changed, 11 insertions(+), 8 deletions(-) (limited to 'frm') diff --git a/frm/common.c b/frm/common.c index bc6ad1a3a..444053a82 100644 --- a/frm/common.c +++ b/frm/common.c @@ -513,7 +513,7 @@ frm_abort (mailbox_t *mbox) { url_t url; - mu_error (_("Could not close <%s>: %s."), + mu_error (_("Could not close mailbox `%s': %s"), url_to_string (url), mu_strerror (status)); exit (3); } @@ -540,9 +540,12 @@ frm_scan (char *mailbox_name, frm_select_t fun, size_t *total) status = mailbox_create_default (&mbox, mailbox_name); if (status != 0) { - mu_error (_("Could not create mailbox <%s>: %s."), - mailbox_name ? mailbox_name : _("default"), - mu_strerror (status)); + if (mailbox_name) + mu_error (_("Could not create mailbox `%s': %s"), + mailbox_name, mu_strerror (status)); + else + mu_error (_("Could not create default mailbox: %s"), + mu_strerror (status)); exit (3); } @@ -560,7 +563,7 @@ frm_scan (char *mailbox_name, frm_select_t fun, size_t *total) *total = 0; else if (status != 0) { - mu_error (_("Could not open mailbox <%s>: %s."), + mu_error (_("Could not open mailbox `%s': %s"), url_to_string (url), mu_strerror (status)); frm_abort (&mbox); } @@ -580,7 +583,7 @@ frm_scan (char *mailbox_name, frm_select_t fun, size_t *total) status = mailbox_scan (mbox, 1, total); if (status != 0) { - mu_error (_("Could not scan mailbox <%s>: %s."), + mu_error (_("Could not scan mailbox `%s': %s."), url_to_string (url), mu_strerror (status)); frm_abort (&mbox); } @@ -590,7 +593,7 @@ frm_scan (char *mailbox_name, frm_select_t fun, size_t *total) if ((status = mailbox_close (mbox)) != 0) { - mu_error (_("Could not close <%s>: %s."), + mu_error (_("Could not close mailbox `%s': %s"), url_to_string (url), mu_strerror (status)); exit (3); } diff --git a/frm/from.c b/frm/from.c index e8a09553b..a188be38c 100644 --- a/frm/from.c +++ b/frm/from.c @@ -25,7 +25,7 @@ const char *program_version = "from (" PACKAGE_STRING ")"; static char doc[] = N_("GNU from -- display from and subject"); static struct argp_option options[] = { - {"count", 'c', NULL, 0, N_("Just print a count of messages and exit.")}, + {"count", 'c', NULL, 0, N_("Just print a count of messages and exit")}, {"sender", 's', N_("ADDRESS"), 0, N_("Print only mail from addresses containing the supplied string") }, {"file", 'f', N_("FILE"), 0, -- cgit v1.2.1