[vilma] Small patch for user status

Vilius Šumskas vilius at lnk.lt
Tue Apr 13 07:07:04 PDT 2004


Hi,

in most cases mail home directory is not readable by the webserver. So I suggest
error type should be lowered to warning. Patch attached.

--
   Best Regards,

   Vilius Šumskas
   LNK TV system administrator
   mob.: +370 614 75713
   www.lnk.lt
-------------- next part --------------
Index: Driver.php
===================================================================
RCS file: /repository/vilma/lib/Driver.php,v
retrieving revision 1.11
diff -u -r1.11 Driver.php
--- Driver.php	7 Apr 2004 14:43:55 -0000	1.11
+++ Driver.php	13 Apr 2004 13:56:08 -0000
@@ -119,8 +119,8 @@
         $mailbox_path = $user['user_home_dir'] . '/' . $domain_name . '/' . $user_name;
         if(!$this->checkMailboxDir($mailbox_path)) {
             $no_error = false;
-            $err_msg = _("Missing mailbox directory.");
-            $status[] = Horde::img('alerts/error.gif', $err_msg, 'align="middle"', $GLOBALS['registry']->getParam('graphics', 'horde')) . ' ' . $err_msg;
+            $err_msg = _("Mailbox directory is missing or not readable by the web server.");
+            $status[] = Horde::img('alerts/warning.gif', $err_msg, 'align="middle"', $GLOBALS['registry']->getParam('graphics', 'horde')) . ' ' . $err_msg;
         }
 
         /* TODO: Quota checking would be nice too. */


More information about the vilma mailing list