Răsfoiți Sursa

Fix unlimited quota on unsuspend, thanks to @romkoll!

Raphael Schneeberger 6 ani în urmă
părinte
comite
c976136d45
1 a modificat fișierele cu 3 adăugiri și 0 ștergeri
  1. 3 0
      bin/v-unsuspend-mail-account

+ 3 - 0
bin/v-unsuspend-mail-account

@@ -48,6 +48,9 @@ is_object_suspended "mail/$domain" 'ACCOUNT' "$account"
 if [[ "$MAIL_SYSTEM" =~ exim ]]; then
     md5=$(get_object_value "mail/$domain" 'ACCOUNT' "$account" '$MD5')
     quota=$(get_object_value "mail/$domain" 'ACCOUNT' "$account" '$QUOTA')
+    if [ "$quota" = 'unlimited' ]; then
+        quota=0
+    fi
     sed -i "/^$account:/d" $HOMEDIR/$user/conf/mail/$domain/passwd
     str="$account:$md5:$user:mail::$HOMEDIR/$user:$quota"
     echo $str >> $HOMEDIR/$user/conf/mail/$domain/passwd