> On Mon, 8 Sep 2003, Tom Collins wrote: > > > How are you setting the quota? If you use vmoduser and enter "20M" (or > > "20MB"), it should do it as 20 * 1024 * 1024. If you set it to > > 20000000, you'll get 19.07. > > Ah. I'm setting 20000000 as the default quota at compile time. vuserinfo > shows 20000000 as well. Oddly, the squirrelmail plugin that shows the > quota in the left frame > (http://www.squirrelmail.org/plugin_view.php?id=59) shows 20MB. It claims > to get this info from the IMAP server (courier). > > > If you use qmailadmin to set it to 20.0, it'll stay at 20.00 MB. There > > is a bug in current versions of qmailadmin (fixed in 1.0.27, to be > > released publicly tomorrow) where you can't set a new quota to the > > current quota divided by a power of 10. So, you couldn't go from 100MB > > to 10MB or 1MB. > > Interesting... Any thoughts on why the plugin reports 20M? Is it just > doing a bad job of rounding? I can probably hack it around if the plugin > is trying to do some odd math.
If you look at the squirrelmail plugin, you will see it has been coded to divide by 1000 Whereas qmailadmin and vpopmail divide by 1024 If you want to mod the plugin so it is consistent with qmailadmin and vpopmail, Go to line 57 and change the value 1000000 to 1048576 Michael.
