Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't delete message #27

Open
minhvietbui opened this issue Jul 15, 2015 · 7 comments
Open

Can't delete message #27

minhvietbui opened this issue Jul 15, 2015 · 7 comments

Comments

@minhvietbui
Copy link

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.

@tonioo
Copy link
Member

tonioo commented Jul 15, 2015

Hi, which version are you using ?

@minhvietbui
Copy link
Author

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.

@tonioo
Copy link
Member

tonioo commented Jul 15, 2015

And does it change something ?

@minhvietbui
Copy link
Author

No any thing change.

@minhvietbui
Copy link
Author

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.

@yiminfantw
Copy link

yiminfantw commented Oct 15, 2017

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

@tonioo
Copy link
Member

tonioo commented Oct 16, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants