Blame SOURCES/quota-4.06-warnquota-configuration-tunes.patch

97c04e
From 6400cf65afed09c63d96cc62b1e7eee964bdb6cb Mon Sep 17 00:00:00 2001
97c04e
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
97c04e
Date: Tue, 23 Aug 2011 13:45:15 +0200
97c04e
Subject: [PATCH] warnquota configuration tunes
97c04e
MIME-Version: 1.0
97c04e
Content-Type: text/plain; charset=UTF-8
97c04e
Content-Transfer-Encoding: 8bit
97c04e
97c04e
Rest of changes (378a64006bb1e818e84a1c77808563b802b028fa) not
97c04e
accepted by upstream (we had root@... addresses and more enterprise
97c04e
wordings usually there). Later improved by the upstream in
97c04e
0efb2331f1c39c9665fb6e92e83c7d080b877de1.
97c04e
97c04e
Signed-off-by: Petr Písař <ppisar@redhat.com>
97c04e
---
97c04e
 warnquota.c    |  2 +-
97c04e
 warnquota.conf | 16 ++++++++--------
97c04e
 2 files changed, 9 insertions(+), 9 deletions(-)
97c04e
97c04e
diff --git a/warnquota.c b/warnquota.c
97c04e
index 2882fee..48d79c0 100644
97c04e
--- a/warnquota.c
97c04e
+++ b/warnquota.c
97c04e
@@ -883,7 +883,7 @@ cc_parse_err:
97c04e
 			}
97c04e
 #ifdef USE_LDAP_MAIL_LOOKUP
97c04e
 			else if (!strcmp(var, "LDAP_MAIL")) {
97c04e
-				if(strcasecmp(value, "true") == 0) 
97c04e
+				if(strncasecmp(value, "true", 4) == 0)
97c04e
 					config->use_ldap_mail = 1;
97c04e
 				else
97c04e
 					config->use_ldap_mail = 0;
97c04e
diff --git a/warnquota.conf b/warnquota.conf
97c04e
index 5bbd0ab..366c3e0 100644
97c04e
--- a/warnquota.conf
97c04e
+++ b/warnquota.conf
97c04e
@@ -19,20 +19,20 @@ FAIL        = "configure /etc/warnquota.conf before running warnquota"
97c04e
 #
97c04e
 # command used for sending mails
97c04e
 #
97c04e
-MAIL_CMD = "/usr/lib/sendmail -t"
97c04e
+MAIL_CMD	= "/usr/sbin/sendmail -t"
97c04e
 
97c04e
 #
97c04e
 # Standard mail fields
97c04e
-FROM        = "root@localhost"
97c04e
-SUBJECT 	= "Your account quota has exceeded!"
97c04e
+FROM        = "root@example.com"
97c04e
+SUBJECT 	= "You are exceeding your allocated disk space limits"
97c04e
 # Note that if LDAP is configured, the name in CC_TO gets looked up in LDAP
97c04e
 # to obtain email address similarly to email recipient address.
97c04e
-CC_TO 		= "root@localhost"
97c04e
+CC_TO 		= "root@example.com"
97c04e
 # If you set this variable CC will be used only when user has less than
97c04e
 # specified grace time left (examples of possible times: 5 seconds, 1 minute,
97c04e
 # 12 hours, 5 days)
97c04e
 # CC_BEFORE = 2 days
97c04e
-SUPPORT 	= "root@localhost"
97c04e
+SUPPORT 	= "root@example.com"
97c04e
 PHONE 		= "123 456 789"
97c04e
 # Text in the beginning of the mail (if not specified, default text is used)
97c04e
 # This way text can be split to more lines
97c04e
@@ -40,11 +40,11 @@ PHONE 		= "123 456 789"
97c04e
 # The expressions %i, %h, %d, and %% are substituted for user/group name,
97c04e
 # host name, domain name, and '%' respectively. For backward compatibility
97c04e
 # %s behaves as %i but is deprecated.
97c04e
-MESSAGE         = Hello user %i, I've noticed you use too much space\
97c04e
- on my disk in %h.%d.|Delete your files on the following filesystems:|
97c04e
+MESSAGE         = Your disk usage has exceeded the agreed limits\
97c04e
+ on this server|Please delete any unnecessary files on following filesystems:|
97c04e
 # Text in the end of the mail (if not specified, default text using SUPPORT and PHONE
97c04e
 # is created)
97c04e
-SIGNATURE	= See you!|			Your admin of %h|
97c04e
+SIGNATURE	= root@example.com
97c04e
 # Following text is used for mails about group exceeding quotas
97c04e
 GROUP_MESSAGE	= Hello,|\
97c04e
 your group %i is using too much disk space at %h.|\
97c04e
-- 
97c04e
2.25.4
97c04e