6.0.0-beta1
9/24/25

[#12174] Can't create new folders via Ingo app
Summary Can't create new folders via Ingo app
Queue Ingo
Queue Version 3.0.3
Type Bug
State Resolved
Priority 2. Medium
Owners slusarz (at) horde (dot) org
Requester g.arminas (at) gmail (dot) com
Created 04/11/2013 (4549 days ago)
Due
Updated 04/11/2013 (4549 days ago)
Assigned
Resolved 04/11/2013 (4549 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
04/11/2013 09:16:07 PM Michael Slusarz Assigned to Michael Slusarz
State ⇒ Resolved
 
04/11/2013 09:15:39 PM Git Commit Comment #3 Reply to this comment
Changes have been made in Git (FRAMEWORK_5_0):

commit d09b8808817d6c1fb27934098e096ee139b8e98e
Author: Michael M Slusarz <slusarz@horde.org>
Date:   Thu Apr 11 15:14:57 2013 -0600

     Fix API call for creating a new mailbox (Bug #12174)

  ingo/lib/Ingo.php |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)

http://git.horde.org/horde-git/-/commit/d09b8808817d6c1fb27934098e096ee139b8e98e
04/11/2013 09:15:13 PM Git Commit Comment #2 Reply to this comment
Changes have been made in Git (master):

commit bad4937e866ab2138cbe4a3bb7e1b8113d09e9b9
Author: Michael M Slusarz <slusarz@horde.org>
Date:   Thu Apr 11 15:14:57 2013 -0600

     Fix API call for creating a new mailbox (Bug #12174)

  ingo/lib/Ingo.php |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)

http://git.horde.org/horde-git/-/commit/bad4937e866ab2138cbe4a3bb7e1b8113d09e9b9
04/11/2013 01:45:10 PM g (dot) arminas (at) gmail (dot) com Comment #1
Priority ⇒ 2. Medium
Patch ⇒ No
Milestone ⇒
Queue ⇒ Ingo
Summary ⇒ Can't create new folders via Ingo app
Type ⇒ Bug
State ⇒ Unconfirmed
Reply to this comment
We're using:
horde 5.0.4
imp 6.0.4
ingo 3.0.3

Ingo uses imap as a backend. Other backends - ldap, sieve and others 
are disabled.

When I try to create new rule that moves an email to a specific new 
mailbox, create new mailbox function doesn't work. An error "Could not 
validate IMAP mailbox." is shown after trying to save new rule.

I can create new mailboxes via IMP or other mail clients, but not via INGO.

The problem looks very similar to http://bugs.horde.org/ticket/10282 .

If I apply these changes to ingo/lib/Ingo.php , everything works fine then:

static public function validateFolder(Horde_Variables $vars, $name)
if (isset($vars->$new_id)) {
             if ($GLOBALS['registry']->hasMethod('mail/createMailbox') &&
--                $GLOBALS['registry']->call('mail/createMailbox', 
$vars->$new_id)) {
++              $GLOBALS['registry']->call('mail/createMailbox', 
array('mailbox' => Horde_String::convertCharset($vars->$new_id, 
'UTF-8', 'UTF7-IMAP')))) {

Saved Queries