Dale Woolridge | 12 Sep 2005 05:11

[PATCH] omail-admin 1.2rc1 updates for vmailmgr 0.97

The attached patch fixes some issues in omail-admin resulting
from differences between vmailmgr 0.96.9 and 0.97:

    1. aliases now have home directories (which are empty), but
       omail-admin assumed this was how aliases and mailbox users
       were distinguished

    2. adduser3() is now used instead of adduser2() so that the
       alias/user distinction is explicit

    3. Resulting from (1) above, the catchall address is detected
       correctly (in the default case).  This should probably be fixed
       to deal with changes to the vmailmgr default-username value.

In addition, this patch provides additional features:

    1. a vstat() wrapper has been added to vmail.inc to support
       collection of live mailbox usage statistics

    2. a new parameter, config_mailbox_recursion (default 0), is
       used to support the previously posted vmailmgr 0.97 patch
       that adds subdirectory stats collection

    3. The mailbox user list contains a new column, Size, which is
       used to display the mailbox statistics collected via vstat().
       Although new/seen/unseen stats are available internally, only
       the sum (total mailbox size) is displayed in this column.
       Warning: This can be slow (and is inefficient) with very large
       numbers of mailboxes.

(Continue reading)

Dale Woolridge | 12 Sep 2005 21:33

Re: [PATCH] omail-admin 1.2rc1 updates for vmailmgr 0.97

On 11-Sep-2005 23:11 Dale Woolridge wrote:
| The attached patch 

    ... was broken and caused rejected hunks in htmlstuff.php.
    Attached is the correct, cleanly-applying, patch.  Thanks
    to Andrew for pointing it out.
--
-dale
--- omail-admin-1.2rc1/config.php	Sun Feb 15 13:15:44 2004
+++ omail-admin/config.php	Sun Sep 11 22:35:53 2005
 <at>  <at>  -140,8 +140,17  <at>  <at> 
 // to allow display of domain / maildir disk usage information
 // (empty by default, to activate it, replace by directory name)

 //$vmailstats_directory = "/var/vmailstats";
 $vmailstats_directory = "";
+
+
+// mailbox(es) size settings
+// -------------------------
+// whether to look into subdirs of dir for mailbox size
+// you can, for example use vmailstats above to keep the
+// deep/recursed mbox size and use non-recursive live
+// mbox size (to reflect INBOX size only)
+$config_mailbox_recursion = 0;	// no recursion

 
 /////////////////////////////////////////////////////////////////////////////////////////
(Continue reading)


Gmane