[imp] Imp LDAP Error: [listMailboxes] IMAP error reported by server

Andy Dorman adorman at ironicdesign.com
Mon Feb 9 15:38:29 UTC 2015


On 02/09/2015 08:26 AM, Andy Dorman wrote:
> C: 6 LIST () "" (INBOX * "Other Users/*""" "Shared Folders/*""") RETURN
> (SUBSCRIBED)
> S: 6 BAD Invalid syntax in List command

I have found the problem...not sure of the fix yet.

The problem is that the LIST command needs a space between the mailbox 
name and the reference name "pattern".

For example, this LIST command works fine while the original above does 
not and the only difference is the space after the mailbox name:

LIST () "" (INBOX * "Other Users/*" "" "Shared Folders/*" "") RETURN 
(SUBSCRIBED)

I have not yet looked at the code where the command is being assembled.

-- 
Andy Dorman



More information about the imp mailing list