summaryrefslogtreecommitdiff
path: root/frm
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2010-12-29 00:47:26 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2010-12-29 00:47:26 +0200
commit426df179766b4b144cf746dfc56f4b4a9f80b3ac (patch)
treea249d2c6711b163b425e9eca503be4eec4be3421 /frm
parent43508b4588ff631efbb22ee3cb84a802358b5e44 (diff)
downloadmailutils-426df179766b4b144cf746dfc56f4b4a9f80b3ac.tar.gz
mailutils-426df179766b4b144cf746dfc56f4b4a9f80b3ac.tar.bz2
Bugfixes.
* libmailutils/url/create.c (_mu_url_create_internal): Fix parsing of the '|' shortcuts. * libmailutils/tests/url.at: Fix '|' test. Add 'prog://' test. * movemail/movemail.c (set_program_id): Call mu_stdstream_strerr_setup to flush changes. * frm/common.c: Minor changes
Diffstat (limited to 'frm')
-rw-r--r--frm/common.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/frm/common.c b/frm/common.c
index 336343270..4fea29cec 100644
--- a/frm/common.c
+++ b/frm/common.c
@@ -388,19 +388,15 @@ get_personal (mu_header_t hdr, const char *field, char **personal)
if (status == 0)
{
mu_address_t address = NULL;
- char *s = NULL;
+ const char *s = NULL;
mu_address_create (&address, hfield);
- mu_address_aget_personal (address, 1, &s);
- mu_address_destroy (&address);
+ mu_address_sget_personal (address, 1, &s);
if (s == NULL)
s = hfield;
- else
- free (hfield);
-
*personal = rfc2047_decode_wrapper (s, strlen (s));
- free (s);
+ mu_address_destroy (&address);
}
return status;
}
@@ -483,7 +479,7 @@ action (mu_observer_t o, size_t type, void *data, void *action_data)
format_field ("");
status = mu_header_aget_value_unfold (hdr, MU_HEADER_SUBJECT,
- &tmp);
+ &tmp);
if (status == 0)
{
char *s = rfc2047_decode_wrapper (tmp, strlen (tmp));
@@ -581,7 +577,7 @@ frm_scan (char *mailbox_name, frm_select_t fun, size_t *total)
status = mu_mailbox_scan (mbox, 1, total);
if (status != 0)
{
- mu_error (_("could not scan mailbox `%s': %s."),
+ mu_error (_("could not scan mailbox `%s': %s"),
mu_url_to_string (url), mu_strerror (status));
frm_abort (&mbox);
}

Return to:

Send suggestions and report system problems to the System administrator.