[GH-ISSUE #421] Adding a new sieve filter fails #404

Closed
opened 2026-02-27 11:11:35 +03:00 by kerem · 2 comments
Owner

Originally created by @tonioo on GitHub (Dec 4, 2013).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/421

Originally assigned to: @tonioo on GitHub.

Originally created by Alberto Berti on 2013-06-30T17:50:42Z

Detected on modoboa 1.0.0

While trying to add a new filter the dialog doesn't show up. Digging deeper this is the traceback on the server side:
Internal Server Error: /sfilters/vari/newfilter/
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 115, in get_response
response = callback(request, _callback_args, *_callback_kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/contrib/auth/decorators.py", line 25, in _wrapped_view
return view_func(request, _args, *_kwargs)
File "/usr/local/lib/python2.7/dist-packages/modoboa-1.0.0-py2.7.egg/modoboa/lib/decorators.py", line 19, in wrapped_f
return f(request, _args, *_kwargs)
File "/usr/local/lib/python2.7/dist-packages/modoboa-1.0.0-py2.7.egg/modoboa/extensions/sievefilters/views.py", line 128, in newfilter
form = FilterForm(conds, actions, request)
File "/usr/local/lib/python2.7/dist-packages/modoboa-1.0.0-py2.7.egg/modoboa/extensions/sievefilters/forms.py", line 89, in init
getattr(self, "build%s_field" % a[0])(request, a[1])
File "/usr/local/lib/python2.7/dist-packages/modoboa-1.0.0-py2.7.egg/modoboa/extensions/sievefilters/forms.py", line 151, in _build_fileinto_field
self._build_action_field(request, "fileinto", value)
File "/usr/local/lib/python2.7/dist-packages/modoboa-1.0.0-py2.7.egg/modoboa/extensions/sievefilters/forms.py", line 143, in _build_action_field
choices = getattr(self, arg["vloader"])(request)
File "/usr/local/lib/python2.7/dist-packages/modoboa-1.0.0-py2.7.egg/modoboa/extensions/sievefilters/forms.py", line 172, in userfolders
folders = self.__build_folders_list(ret, request.user, mbc)
File "/usr/local/lib/python2.7/dist-packages/modoboa-1.0.0-py2.7.egg/modoboa/extensions/sievefilters/forms.py", line 162, in __build_folders_list
submboxes = imapc.getmboxes(user, value, unseen_messages=False)
File "/usr/local/lib/python2.7/dist-packages/modoboa-1.0.0-py2.7.egg/modoboa/extensions/webmail/imaputils.py", line 451, in getmboxes
self._listmboxes(topmailbox, md_mailboxes, until_mailbox)
File "/usr/local/lib/python2.7/dist-packages/modoboa-1.0.0-py2.7.egg/modoboa/extensions/webmail/imaputils.py", line 36, in wrapped_func
return method(cls, _args, *_kwargs)
File "/usr/local/lib/python2.7/dist-packages/modoboa-1.0.0-py2.7.egg/modoboa/extensions/webmail/imaputils.py", line 397, in _listmboxes
for mb in resp:
TypeError: 'NoneType' object is not iterable

It appears that the server fails at listing my mailboxes which are quite many, but the listing on the webmail works without any problem

Originally created by @tonioo on GitHub (Dec 4, 2013). Original GitHub issue: https://github.com/modoboa/modoboa/issues/421 Originally assigned to: @tonioo on GitHub. **Originally created by Alberto Berti on 2013-06-30T17:50:42Z** Detected on modoboa 1.0.0 While trying to add a new filter the dialog doesn't show up. Digging deeper this is the traceback on the server side: Internal Server Error: /sfilters/vari/newfilter/ Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 115, in get_response response = callback(request, _callback_args, *_callback_kwargs) File "/usr/local/lib/python2.7/dist-packages/django/contrib/auth/decorators.py", line 25, in _wrapped_view return view_func(request, _args, *_kwargs) File "/usr/local/lib/python2.7/dist-packages/modoboa-1.0.0-py2.7.egg/modoboa/lib/decorators.py", line 19, in wrapped_f return f(request, _args, *_kwargs) File "/usr/local/lib/python2.7/dist-packages/modoboa-1.0.0-py2.7.egg/modoboa/extensions/sievefilters/views.py", line 128, in newfilter form = FilterForm(conds, actions, request) File "/usr/local/lib/python2.7/dist-packages/modoboa-1.0.0-py2.7.egg/modoboa/extensions/sievefilters/forms.py", line 89, in __init__ getattr(self, "_build_%s_field" % a[0])(request, a[1]) File "/usr/local/lib/python2.7/dist-packages/modoboa-1.0.0-py2.7.egg/modoboa/extensions/sievefilters/forms.py", line 151, in _build_fileinto_field self._build_action_field(request, "fileinto", value) File "/usr/local/lib/python2.7/dist-packages/modoboa-1.0.0-py2.7.egg/modoboa/extensions/sievefilters/forms.py", line 143, in _build_action_field choices = getattr(self, arg["vloader"])(request) File "/usr/local/lib/python2.7/dist-packages/modoboa-1.0.0-py2.7.egg/modoboa/extensions/sievefilters/forms.py", line 172, in userfolders folders = self.__build_folders_list(ret, request.user, mbc) File "/usr/local/lib/python2.7/dist-packages/modoboa-1.0.0-py2.7.egg/modoboa/extensions/sievefilters/forms.py", line 162, in __build_folders_list submboxes = imapc.getmboxes(user, value, unseen_messages=False) File "/usr/local/lib/python2.7/dist-packages/modoboa-1.0.0-py2.7.egg/modoboa/extensions/webmail/imaputils.py", line 451, in getmboxes self._listmboxes(topmailbox, md_mailboxes, until_mailbox) File "/usr/local/lib/python2.7/dist-packages/modoboa-1.0.0-py2.7.egg/modoboa/extensions/webmail/imaputils.py", line 36, in wrapped_func return method(cls, _args, *_kwargs) File "/usr/local/lib/python2.7/dist-packages/modoboa-1.0.0-py2.7.egg/modoboa/extensions/webmail/imaputils.py", line 397, in _listmboxes for mb in resp: TypeError: 'NoneType' object is not iterable It appears that the server fails at listing my mailboxes which are quite many, but the listing on the webmail works without any problem
kerem 2026-02-27 11:11:35 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@tonioo commented on GitHub (Dec 4, 2013):

Posted by Antoine Nguyen on 2013-07-01T07:34:57Z

Hi,

I fail to reproduce this issue. What is your dovecot version?

Do you got nested mailboxes? If yes, how many levels?

It would be easier to investigate with a full stacktrace...

<!-- gh-comment-id:29816369 --> @tonioo commented on GitHub (Dec 4, 2013): **Posted by Antoine Nguyen on 2013-07-01T07:34:57Z** Hi, I fail to reproduce this issue. What is your dovecot version? Do you got nested mailboxes? If yes, how many levels? It would be easier to investigate with a full stacktrace...
Author
Owner

@tonioo commented on GitHub (Dec 4, 2013):

Posted by Antoine Nguyen on 2013-09-02T19:44:59Z

Hi Alberto, I finally found the origin of this issue! Modoboa has a bad support for mailboxes hierarchy separator :p

<!-- gh-comment-id:29816370 --> @tonioo commented on GitHub (Dec 4, 2013): **Posted by Antoine Nguyen on 2013-09-02T19:44:59Z** Hi Alberto, I finally found the origin of this issue! Modoboa has a bad support for mailboxes hierarchy separator :p
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/modoboa-modoboa#404
No description provided.