modoboa-webmail icon indicating copy to clipboard operation
modoboa-webmail copied to clipboard

Can't delete message

Open minhvietbui opened this issue 10 years ago • 7 comments

Hi, I have a problem with webmail. When user is full quota, he can't delete message, error display "Object object". How to resolve problem? thank you very much.

minhvietbui avatar Jul 15 '15 03:07 minhvietbui

Hi, which version are you using ?

tonioo avatar Jul 15 '15 07:07 tonioo

My server using version 1.3.2 , in imaputils.py i was inserted "MAXLINE = 1000000 if hasattr(imaplib, "_MAXLINE") and getattr(imaplib, "_MAXLINE") < MAXLINE: setattr(imaplib, "_MAXLINE", MAXLINE)", quota user is 100 MB with less than 150 messages.

minhvietbui avatar Jul 15 '15 08:07 minhvietbui

And does it change something ?

tonioo avatar Jul 15 '15 08:07 tonioo

No any thing change.

minhvietbui avatar Jul 15 '15 08:07 minhvietbui

I find reason for this problem. When quota full function _cmd(self, name, _args, _kwargs) in imaputils.py return error. I was edit query user_query in dovecot-sql.conf.ext : user_query = SELECT '/%d/%n' AS home, as uid, as gid, concat(':bytes=', mb.quota, 'M') AS quota_rule, 'Trash:ignore' AS quota_rule2 FROM admin_mailbox mb INNER JOIN admin_domain dom ON mb.domain_id=dom.id WHERE mb.address='%n' AND dom.name='%d' . And I can move message to trash when quota full.

minhvietbui avatar Aug 11 '15 06:08 minhvietbui

I think this could still happen in 1.9.0 or later. My config is Ubuntu 16.04, Modoboa 1.9.1 and external LDAP. I had a test by reaching an user's quota and I can reproduce the "Object object" issue when deleting user email. Current workaround is increasing user quota and email can then be deleted. Any idea? Thx

yiminfantw avatar Oct 15 '17 01:10 yiminfantw

@yiminfantw yes, I haven't officialized the proposed SQL query. You can try to apply it and see if it fixes the problem.

tonioo avatar Oct 16 '17 18:10 tonioo