OK, that's a good bug report, thank you.
I think I see the problem. Please edit imap/imapd.c
and in function quotainfo_out change
sprintf(qbuf,"STORAGE %ld %ld",
(long)(quotainfo.size.nbytes+1023)/1024,
(long)(quotainfo.quota.nbytes+1023)/1024);
to
sprintf(qbuf,"STORAGE %ld %ld",
(long)((quotainfo.size.nbytes+1023)/1024),
(long)((quotainfo.quota.nbytes+1023)/1024));
If that fixes the problem, please report back here. Only MrSam is able to
commit changes.
(It looks like your platform has a 64-bit off_t but only 32-bit long; it's
therefore important to do the math as 64-bit and convert to 32-bits at the
end)
Regards,
Brian.
On Thu, Mar 16, 2006 at 04:21:45PM +0900, [EMAIL PROTECTED] wrote:
> Quoting Brian Candler <[EMAIL PROTECTED]>:
> >Which exact version of courier-imap?
> >
> >Demonstrate the problem. Show exactly what you do and what you see as the
> >result.
> Here is:
> Pentium4/FreeBSD-5.3
> courier-authlib-0.58
> courier-imap-4.1.0
> exim-4.60 as MTA
> PostgreSQL-8.0.1
>
>
> $ uname -a
> uname -a
> FreeBSD mail.siliconfile.com 5.3-RELEASE FreeBSD 5.3-RELEASE #0: Fri
> Nov 5 04:19:18 UTC 2004
> [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC i386
>
> $ psql horde
> Welcome to psql 8.0.1, the PostgreSQL interactive terminal.
>
> Type: \copyright for distribution terms
> \h for help with SQL commands
> \? for help with psql commands
> \g or terminate with semicolon to execute query
> \q to quit
> horde=# select * from users where id = 'ssoo';
> id | crypt | clear | uid | gid |
> home | name | quota | forward | forwardto | keeplocal
> ------+----------------------------------+----------+------+------+-------------------+--------+------------+---------+-----------+-----------
> ssoo | b6f068bac4c6389d344faf6817c7ff82 | xxxxxxxx | 2020 | 2000 |
> /export/user/ssoo | ?????? | 2147483648 | f | | t
> (1 row)
>
> horde=# \q
> $
>
> # cat /export/user/ssoo/Maildir/maildirsize
> 2147483648S,0C
> 57333537 168
> 482 1
>
> $ telnet localhost imap
> Trying 127.0.0.1...
> Connected to localhost
> Escape character is '^]'.
> * OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE
> THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION
> STARTTLS] Courier-IMAP ready. Copyright 1998-2005 Double Precision,
> Inc. See COPYING for distribution information.
> a login ssoo xxxxxxxx
> a OK LOGIN Ok.
> a getquotaroot INBOX
> * QUOTAROOT "INBOX" "ROOT"
> * QUOTA "ROOT" (STORAGE 55995 -2097151)
> a OK GETQUOTAROOT Ok.
> a logout
> * BYE Courier-IMAP server shutting down
> a OK LOGOUT completed
> Connection closed by foreign host.
>
> * QUOTA "ROOT" (STORAGE 55995 -2097151) <- negative quota size!
>
> Need more?
>
> --
> ????, [EMAIL PROTECTED], +82-2-578-9037(203)
>
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Courier-imap mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap