Commits

Zhang Huangbin  committed 443a194

Typo.

  • Participants
  • Parent commits bac5d9b

Comments (0)

Files changed (3)

File iRedMail/conf/dovecot

 # Dovecot quota warning.
 export DOVECOT_QUOTA_WARNING_SCRIPT='/usr/local/bin/dovecot-quota-warning.sh'
 export DOVECOT_REALTIME_QUOTA_SQLTYPE='mysql'
+export DOVECOT_REALTIME_QUOTA_TABLE='used_quota'
 export DOVECOT_SHARE_FOLDER_SQLTYPE='mysql'
 
 if [ X"${DOVECOT_VERSION}" == X"1.1" -o X"${DOVECOT_VERSION}" == X"1.2" ]; then

File iRedMail/functions/dovecot1.sh

 
         if [ X"${BACKEND}" == X"OpenLDAP" ]; then
             realtime_quota_db_name="${IREDADMIN_DB_NAME}"
-            realtime_quota_db_table="used_quota"
             realtime_quota_db_user="${IREDADMIN_DB_USER}"
             realtime_quota_db_passwd="${IREDADMIN_DB_PASSWD}"
         else
             realtime_quota_db_name="${VMAIL_DB}"
-            realtime_quota_db_table="mailbox"
             realtime_quota_db_user="${MYSQL_ADMIN_USER}"
             realtime_quota_db_passwd="${MYSQL_ADMIN_PW}"
         fi
 connect = host=${MYSQL_SERVER} dbname=${realtime_quota_db_name} user=${realtime_quota_db_user} password=${realtime_quota_db_passwd}
 map {
     pattern = priv/quota/storage
-    table = ${realtime_quota_db_table}
+    table = ${DOVECOT_REALTIME_QUOTA_TABLE}
     username_field = username
     value_field = bytes
 }
 map {
     pattern = priv/quota/messages
-    table = ${realtime_quota_db_table}
+    table = ${DOVECOT_REALTIME_QUOTA_TABLE}
     username_field = username
     value_field = messages
 }

File iRedMail/functions/dovecot2.sh

 
         if [ X"${BACKEND}" == X"OpenLDAP" ]; then
             realtime_quota_db_name="${IREDADMIN_DB_NAME}"
-            realtime_quota_db_table="used_quota"
             realtime_quota_db_user="${IREDADMIN_DB_USER}"
             realtime_quota_db_passwd="${IREDADMIN_DB_PASSWD}"
         else
             realtime_quota_db_name="${VMAIL_DB}"
-            realtime_quota_db_table="mailbox"
             realtime_quota_db_user="${MYSQL_ADMIN_USER}"
             realtime_quota_db_passwd="${MYSQL_ADMIN_PW}"
         fi
 connect = host=${MYSQL_SERVER} dbname=${realtime_quota_db_name} user=${realtime_quota_db_user} password=${realtime_quota_db_passwd}
 map {
     pattern = priv/quota/storage
-    table = ${realtime_quota_db_table}
+    table = ${DOVECOT_REALTIME_QUOTA_TABLE}
     username_field = username
     value_field = bytes
 }
 map {
     pattern = priv/quota/messages
-    table = ${realtime_quota_db_table}
+    table = ${DOVECOT_REALTIME_QUOTA_TABLE}
     username_field = username
     value_field = messages
 }