We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11cb653 commit c976136Copy full SHA for c976136
bin/v-unsuspend-mail-account
@@ -48,6 +48,9 @@ is_object_suspended "mail/$domain" 'ACCOUNT' "$account"
48
if [[ "$MAIL_SYSTEM" =~ exim ]]; then
49
md5=$(get_object_value "mail/$domain" 'ACCOUNT' "$account" '$MD5')
50
quota=$(get_object_value "mail/$domain" 'ACCOUNT' "$account" '$QUOTA')
51
+ if [ "$quota" = 'unlimited' ]; then
52
+ quota=0
53
+ fi
54
sed -i "/^$account:/d" $HOMEDIR/$user/conf/mail/$domain/passwd
55
str="$account:$md5:$user:mail::$HOMEDIR/$user:$quota"
56
echo $str >> $HOMEDIR/$user/conf/mail/$domain/passwd
0 commit comments