[Dovecot] Maildir quota's
joshua at roughtrade.net
Mon Dec 5 05:50:12 EET 2005
I'm seeing "Internal quota calculation error" using the quota plug-in
with Maildirs & imap in 1.0.alpha4.
I think it's because maildir_uidlist_lookup_rec returns NULL after
being passed a uid of 0 (from maildir_mail_get_physical_size in
maildir-mail.c:185) (and .Trash/dovecot-uidlist doesn't exist)
Backtrace from breakpoint on the error message; during 'A10 COPY 1 "Trash"':
#0 dirsize_quota_try_alloc (ctx=0x80ef670, _quota=0x80e2c50, mail=0x80ff248) at quota-dirsize.c:235
#1 0xb7dbbae1 in quota_try_alloc (ctx=0x80ef670, quota=0x80e2c50, mail=0x80ff248) at quota.c:70
#2 0xb7dbb476 in quota_check (t=0x80ef670, mail=0x80ff248) at quota-storage.c:70
#3 0xb7dbb6f4 in quota_save_finish (ctx=0x8104068, dest_mail=0x80ff248) at quota-storage.c:154
#4 0x080a552d in mailbox_save_finish (ctx=0x8104068, dest_mail=0x80ff248) at mail-storage.c:448
#5 0x080a461d in mail_storage_copy (t=0x80ef670, mail=0x80f0a48, flags=MAIL_SEEN, keywords=0x0, dest_mail=0x80ff248) at mail-copy.c:36
#6 0x0806c305 in maildir_copy (_t=0x80ef670, mail=0x80f0a48, flags=MAIL_SEEN, keywords=0x0, dest_mail=0x80ff248) at maildir-copy.c:165
#7 0xb7dbb571 in quota_copy (t=0x80ef670, mail=0x80f0a48, flags=MAIL_SEEN, keywords=0x0, dest_mail=0x0) at quota-storage.c:99
#8 0x080a557b in mailbox_copy (t=0x80ef670, mail=0x80f0a48, flags=MAIL_SEEN, keywords=0x0, dest_mail=0x0) at mail-storage.c:460
#9 0x08056068 in fetch_and_copy (t=0x80ef670, srcbox=0x80ea660, search_args=0x80e58a0) at cmd-copy.c:34
#10 0x08056263 in cmd_copy (cmd=0x80e3668) at cmd-copy.c:94
#11 0x0805abfc in client_handle_input (cmd=0x80e3668) at client.c:338
#12 0x0805ad2d in _client_input (context=0x80e3628) at client.c:390
#13 0x080bbfe3 in io_loop_handler_run (ioloop=0x80e1e50) at ioloop-poll.c:190
#14 0x080baff5 in io_loop_run (ioloop=0x80e1e50) at ioloop.c:230
#15 0x08064f2b in main (argc=3, argv=0xbfa33554, envp=0xbfa33564) at main.c:232
I don't understand what the Quota plugin causes to be done differently
On Fri, Sep 23, 2005 at 03:45:57PM +0300, Timo Sirainen wrote:
> On Sun, 2005-09-18 at 18:08 +0200, Lieven Van Acker wrote:
> > Hey,
> > is
> > http://www.dovecot.org/patches/1.0/quota.tar.gz
> > supposed to work with maildir quota's for virtual mailboxes?
> It should work, but it's not necessarily a good idea since it works by
> stat()ing all files found in a given directory and with maildir that's
> slow since there are a lot of files. Proper maildir quota support will
> come later..
> > Using it
> > with dovecot-lda (cvs) results in DSN
> > Your message was automatically rejected by Sieve, a mail
> > filtering language.
> > The following reason was given:
> > Internal quota calculation error
> What do the logs say? Set use_syslog=yes in dovecot-deliver.conf if you
> don't see anything in MTA's logs. Dovecot should then log
> to /var/log/mail.log or something.
Joshua Goodall "as modern as tomorrow afternoon"
joshua at roughtrade.net - FW109
More information about the dovecot