Hello from France

I'm using vpopmail 5.4.0 and vqadmin 2.3.2 and it's doing fine (good job !) but...

I think there's a little problem with quota update in vpopmail and vqadmin :
When i change a user's quota via commandline using the 'vsetuserquota' program, the quota is changed in the vpasswd file and the Maildir/maildirquota file is updated.
BUT when i change a user's quota via vqadmin, only the vpasswd file is updated, not the Maildir/maildirquota file. Finally, it is as if there was no modification at all.


I watched into source code of vpopmail and vqadmin and saw that :
- vqadmin uses the vauth_setpw function to modify a user.
- inside vpopmail : the function vauth_setpw modify only the vpasswd file, but the vsetuserquota function modify vpasswd file (by calling vauth_setpw) and then update Maildir/maildirsize file.


That's why the vsetuserquota program does the right job (it uses the vsetuserquota function), and vqadmin does only 'half' of the job.

I think the best solution to solve this problem would be to move the portion of code which does the Maildir/maildirquota update in vsetuserquota into the vauth_setpw function.
That's only what i think, i don't know all the choices that were made since the beginning to do that project so i leave the solution up to you :)


(I hope that you understood my english and that what i said is right :p )

Florent

Reply via email to