[imp] wu-imap quotas on Redhat 8 or 9 with imp 3.2.2

Lord Apollyon implist at paypc.com
Fri Sep 19 07:26:10 PDT 2003


>   Where should I insert this code snippet?

The following (all one line) goes just before the "sudo quota" line:

$junk = exec("(grep -w $homedir[1] /etc/fstab || grep -w \"/\" /etc/fstab) |
cut -f1 -d\  | cut -f1", $my_device); // this is a new line

The next line reads:

if ($return_code === 0 && $my_device === 1) // this is a new line

and the very next line reads (all one line):

$junk = exec("/usr/local/phpbin/sudo /usr/bin/quota -u $imap_admin | grep
$my_device",$quota_data,$return_code); // replace your existing "quota" line
with this one.

If you can't make this out, I'll email the entire quota function fragment. 
It works well on three different systems which use radically different disk
and filesystem layouts.

=Apollyon=


More information about the imp mailing list