Page 1 of 1

Server variable - disc quota

Posted: Thu May 17, 2012 3:04 pm
by Djfx*
would it be possible to make a new server variable for ftp messages that get`s activated when a user is set up with a active quota rule?

when i add this line to the user login message:
-U have used %UserCurrentQuota of %UserMaxQuota

it`s showing what i want for user`s that got a quota rule set but when there`s no rule set up for the user that`s logging inn it says 0 of 0 so maybe have the %usermaxquota have a conditional logic that changes the 0 to a infinitive mark (∞) or removes the intire line (-U have used %UserCurrentQuota of %UserMaxQuota) if the user that logged in dont have a disc quote

Re: Server variable - disc quota

Posted: Tue May 22, 2012 5:44 am
by FTP
Actually, you do not need to set such welcome message, because when you enable the disk quota, the server will send such message automatically, like the following message:

226-Maximum disk quota limited to 100000 KBytes.Already Used 0 KBytes disk quota