mirror of
https://github.com/modoboa/modoboa.git
synced 2026-04-27 09:55:58 +03:00
[GH-ISSUE #421] Adding a new sieve filter fails #404
Labels
No labels
bug
bug
dependencies
design
documentation
duplicate
enhancement
enhancement
enhancement
feedback-needed
help-needed
help-needed
installer
invalid
looking-for-sponsors
modoboa-contacts
new-ui
new-ui
pr
pull-request
pyconfr
python
question
security
stale
webmail
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/modoboa-modoboa#404
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
@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...
@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