Added a Module Config option to show both hard and/or soft quota percentages.
---- Changes since 1.380 ----
Quotas are considered active for a filesystem if the usrquota or grpquota options are on in /etc/mtab, even if missing from /etc/fstab.
+---- Changes since 1.400 ----
+If a user to email is a Virtualmin domain owner, send email to the domain's contact address.
if ($d) {
local @users = &virtual_server::list_domain_users($d, 0, 0, 1, 1);
local ($uinfo) = grep { $_->{'user'} eq $user{$i,'user'} } @users;
- if ($uinfo && $uinfo->{'email'}) {
+ if ($uinfo && $uinfo->{'domainowner'}) {
+ # Domain owner, with own email
+ $email = $d->{'emailto'};
+ }
+ elsif ($uinfo && $uinfo->{'email'}) {
+ # Regular user with email
$email = $uinfo->{'email'};
}
}