[GH-ISSUE #457] Editing nested folders does not preselect proper values #441

Closed
opened 2026-02-27 11:11:47 +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/457

Originally assigned to: @tonioo on GitHub.

Originally created by Miroslav Abrahám on 2013-09-07T22:22:53Z

When I try to edit nested folders in a webmail, the edit form does not hape proper values selected.
The name of the folder to edit contains all parent folders divided with a delimiter (which is not "." in my case but is "/").
Also the parent folders should be selected but are not.

I assume this is the delimiter issue.

Originally created by @tonioo on GitHub (Dec 4, 2013). Original GitHub issue: https://github.com/modoboa/modoboa/issues/457 Originally assigned to: @tonioo on GitHub. **Originally created by Miroslav Abrahám on 2013-09-07T22:22:53Z** When I try to edit nested folders in a webmail, the edit form does not hape proper values selected. The name of the folder to edit contains all parent folders divided with a delimiter (which is not "." in my case but is "/"). Also the parent folders should be selected but are not. I assume this is the delimiter issue.
kerem 2026-02-27 11:11:47 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

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

Posted by Miroslav Abrahám on 2013-09-07T23:18:19Z

One step closer to the solution:

replace in file "modoboa/extensions/webmail/views.py" line 174 with this code

oldname, oldparent = separate_mailbox(request.POST["oldname"], mbc.hdelimiter)

and line 196 with this code

shortname, parent = separate_mailbox(name, mbc.hdelimiter)

In both cases the delimiter was missing and the default "." was used.
Now the parent folder is properly found and selected but parent folders contain the whole folder tree.

<!-- gh-comment-id:29816717 --> @tonioo commented on GitHub (Dec 4, 2013): **Posted by Miroslav Abrahám on 2013-09-07T23:18:19Z** One step closer to the solution: replace in file "modoboa/extensions/webmail/views.py" _line 174_ with this code <pre> oldname, oldparent = separate_mailbox(request.POST["oldname"], mbc.hdelimiter) </pre> and _line 196_ with this code <pre> shortname, parent = separate_mailbox(name, mbc.hdelimiter) </pre> In both cases the delimiter was missing and the default "." was used. Now the parent folder is properly found and selected but parent folders contain the whole folder tree.
Author
Owner

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

Posted by Antoine Nguyen on 2013-09-09T19:39:29Z

Applied in changeset commit:1036aa31a21d798df70536fe7821a8d6464853f4.

<!-- gh-comment-id:29816719 --> @tonioo commented on GitHub (Dec 4, 2013): **Posted by Antoine Nguyen on 2013-09-09T19:39:29Z** Applied in changeset commit:1036aa31a21d798df70536fe7821a8d6464853f4.
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#441
No description provided.