lib/vpwentry/to.cc
changeset 2 b3afb9f1e801
parent 0 6f7a81934006
--- a/lib/vpwentry/to.cc	Sun Jan 20 00:12:17 2008 +0100
+++ b/lib/vpwentry/to.cc	Sun Jan 20 00:22:09 2008 +0100
@@ -27,13 +27,15 @@
   if(!!forwards)
     f = forwards + mystring::NUL;
   char flagstmp[] = {
+    vdomain::ATTR_HAS_MAILBOX,
+    has_mailbox && !!directory,
     vdomain::ATTR_MAILBOX_ENABLED,
     is_mailbox_enabled,
     0
   };
-  mystring flags(flagstmp, 3);
+  mystring flags(flagstmp, 5);
   return prefix + flags + pass + mystring::NUL +
-    mailbox + mystring::NUL +
+    directory + mystring::NUL +
     f + mystring::NUL +
     personal + mystring::NUL +
     utoa(hardquota) + mystring::NUL +