summaryrefslogtreecommitdiff
path: root/guimb/collect.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2005-06-23 13:23:37 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2005-06-23 13:23:37 +0000
commit554755172702ace341b4ed113408804984270789 (patch)
tree91690d9d85e506676ea6bfe98e948b7be09d2cb6 /guimb/collect.c
parent8c6fcf1e76574f20010acf98f77169c3afc6e443 (diff)
downloadmailutils-554755172702ace341b4ed113408804984270789.tar.gz
mailutils-554755172702ace341b4ed113408804984270789.tar.bz2
Use mu_mail_directory, mu_folder_directory and related calls.
Diffstat (limited to 'guimb/collect.c')
-rw-r--r--guimb/collect.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/guimb/collect.c b/guimb/collect.c
index eb99f0e29..146d6c38c 100644
--- a/guimb/collect.c
+++ b/guimb/collect.c
@@ -29,10 +29,11 @@ collect_open_default ()
if (!default_mailbox)
{
- asprintf (&default_mailbox, "%s%s", mu_path_maildir, user_name);
- if (!default_mailbox)
+ int rc = mu_construct_user_mailbox_url (&default_mailbox, user_name);
+ if (rc)
{
- util_error (_("Not enough memory"));
+ util_error (_("Cannot construct default mailbox URL: %s"),
+ mu_strerror (rc));
exit (1);
}
}

Return to:

Send suggestions and report system problems to the System administrator.