aboutsummaryrefslogtreecommitdiffstats
path: root/USER
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2013-04-23 17:52:24 +0000
committerThierry Vignaud <tv@mageia.org>2013-04-23 17:52:24 +0000
commit6fd2bb26cd16adb9a38d37af9dda94ee7baa1c1c (patch)
treef09c059b9f6e1fa8831bba04887f1eb2b44b7d5a /USER
parent53ed5976ab640ae2d370e588f3e417c4e5209035 (diff)
downloaduserdrake-6fd2bb26cd16adb9a38d37af9dda94ee7baa1c1c.tar
userdrake-6fd2bb26cd16adb9a38d37af9dda94ee7baa1c1c.tar.gz
userdrake-6fd2bb26cd16adb9a38d37af9dda94ee7baa1c1c.tar.bz2
userdrake-6fd2bb26cd16adb9a38d37af9dda94ee7baa1c1c.tar.xz
userdrake-6fd2bb26cd16adb9a38d37af9dda94ee7baa1c1c.zip
reuse upstream code for creating/removing spool
Diffstat (limited to 'USER')
-rw-r--r--USER/USER.xs9
1 files changed, 5 insertions, 4 deletions
diff --git a/USER/USER.xs b/USER/USER.xs
index 05e011e..0aa7b61 100644
--- a/USER/USER.xs
+++ b/USER/USER.xs
@@ -275,8 +275,8 @@ Admin_UserAdd(self, ent, is_system, dont_create_home)
}
/* Create a mail spool for the user. */
- if (lu_mailspool_create_remove(self, ent, 1) != 1) {
- warn(_("Error creating mail spool.\n"));
+ if (lu_mail_spool_create(self, ent, &error) != 1) {
+ warn(_("Error creating mail spool: %s\n"), error ? error->string : "Unknown error");
RETVAL = 3;
}
}
@@ -623,9 +623,10 @@ void
Admin_CleanSpool(self, ent)
USER::ADMIN *self
USER::ENT *ent
+ USER__ERR *error = NULL;
PPCODE:
- if (lu_mailspool_create_remove(self, ent, 0) != 1) {
- warn(_("Error deleting mail spool.\n"));
+ if (lu_mail_spool_remove(self, ent, &error) != 1) {
+ warn(_("Error deleting mail spool: %s\n"), error ? error->string : "Unknown error");
}
MODULE = USER PACKAGE = USER::ENT PREFIX = Ent_