This might not be helpful, or it may duplicate other's work, but in a
brief look through the mail list archive and the code I didn't see way
to display to the end user the amount of space their account was using.
I created a template tag to do this (just a copy and paste from the
admin list of users stuck in a case 'Q'). Hope this is useful. I
noticed a comment in the code that this section may be being reworked.
Use it if it fits, else leave it by the way side.
Chaz O
inserted to template.c before case 'q':
/* show account usage */
case 'Q':
vpw = vauth_getpw(ActionUser, Domain);
if (strncmp(vpw->pw_shell, "NOQUOTA", 2) != 0) {
long diskquota = 0;
int maxmsg = 0;
char path[256];
quota_to_megabytes(qconvert, vpw->pw_shell);
snprintf(path, sizeof(path), "%s/" MAILDIR, vpw->pw_dir);
readuserquota(path, &diskquota, &maxmsg);
printf ("%-2.2lf", ((double)diskquota)/1048576.0); /* Convert to
MB */
}
break;
!DSPAM:473b4da132007108697774!