From 004f70ec9e04ca2f743d79b8d2874f1be96cb4ae Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Wed, 22 May 2013 14:51:44 -0700 Subject: [PATCH] Send quota email to domain owner or master admin separately https://www.virtualmin.com/node/27493 --- quota/email.pl | 10 +++++++++- quota/lang/en | 4 ++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/quota/email.pl b/quota/email.pl index cf2bdc66b..2b84cd420 100755 --- a/quota/email.pl +++ b/quota/email.pl @@ -219,8 +219,16 @@ else { } &mailboxes::send_text_mail($from || &mailboxes::get_from_address(), $addr, - $ccaddr, + undef, $subject, $body); +if ($ccaddr) { + # Also send to other address (like the domain owner) + &mailboxes::send_text_mail($from || &mailboxes::get_from_address(), + $ccaddr, + undef, + $subject, + $body); + } } diff --git a/quota/lang/en b/quota/lang/en index de7b8d2e2..d13b6d7d8 100644 --- a/quota/lang/en +++ b/quota/lang/en @@ -281,8 +281,8 @@ lusers_domain=Domain for user addresses luser_virtualmin=Get domain from Virtualmin? lusers_from=From: address for email lusers_mass=Update Selected Users -lusers_cc=Also Cc: email to -lusers_nocc=Don't Cc +lusers_cc=Also send email to +lusers_nocc=Nobody grace_seconds=Seconds grace_minutes=Minutes