I was trying this:
/usr/local/imap-tools/imapcopy.pl -z -m "INBOX" -S {src info} -D {dst info}
I get the same result for INBOX, Inbox, etc
Number of mailboxes to process: 1
unexpected response: 1 NO Mailbox does not exist, or must be subscribed to.
There are 0 messages in INBOX.INBOX on the source
INBOX.INBOX mailbox is empty
Copied 0 total messages
Here is the debugging output (slightly sanitized) when I enable those options:
Attempting a non-SSL connection
Connected to x.x.x.x on port 143
method
Authenticating to x.x.x.x as
username@example.com
>> 1 LOGIN
username@example.com "XXXX"
<< * OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION STARTTLS] Courier-IMAP ready. Copyright 1998-2004 Double Precision, Inc. See COPYING for distribution information.
<< 1 OK LOGIN Ok.
Logged in as
username@example.com
>> 1 NAMESPACE
<< * NAMESPACE (("INBOX." ".")) NIL (("#shared." ".")("shared." "."))
<< 1 OK NAMESPACE completed.
prefix >INBOX.<
delim >.<
Connecting to y.y.y.y
Attempting a non-SSL connection
Connected to y.y.y.y on port 143
method
Authenticating to y.y.y.y as
username@example.com
>> 1 LOGIN
username@example.com "XXXX"
<< * OK Waiting for authentication process to respond..
<< * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE NAMESPACE STARTTLS AUTH=PLAIN AUTH=LOGIN] Dovecot ready.
<< 1 OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT MULTIAPPEND URL-PARTIAL CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS SPECIAL-USE BINARY MOVE NAMESPACE QUOTA] Logged in
Logged in as
username@example.com
>> 1 NAMESPACE
<< * NAMESPACE (("INBOX." ".")) NIL NIL
<< 1 OK Namespace completed.
prefix >INBOX.<
delim >.<
>> 1 LIST "" "*"
<< * LIST (\HasChildren) "." INBOX
<< * LIST (\HasNoChildren) "." INBOX.Drafts
<< * LIST (\HasNoChildren) "." INBOX.Junk
<< * LIST (\HasNoChildren) "." INBOX.Sent
<< * LIST (\HasNoChildren) "." INBOX.Trash
<< 1 OK List completed.
Number of mailboxes to process: 1
src mbx INBOX.INBOX
src prefix INBOX.
src delim .
dst prefix INBOX.
dst delim .
>> 1 SUBSCRIBE "INBOX"
<< 1 OK Subscribe completed.
Mailbox INBOX has been subscribed
>> 1 SELECT "INBOX"
<< * FLAGS (\Answered \Flagged \Deleted \Seen \Draft)
<< * OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft \*)] Flags permitted.
<< * 0 EXISTS
<< * 0 RECENT
<< * OK [UIDVALIDITY 1393428950] UIDs valid
<< * OK [UIDNEXT 1] Predicted next UID
<< * OK [NOMODSEQ] No permanent modsequences
<< 1 OK [READ-WRITE] Select completed (0.000 secs).
>> 1 EXAMINE "INBOX.INBOX"
<< 1 NO Mailbox does not exist, or must be subscribed to.
unexpected response: 1 NO Mailbox does not exist, or must be subscribed to.
There are 0 messages in INBOX.INBOX on the source
INBOX.INBOX mailbox is empty
Copied 0 total messages
>> 1 LOGOUT
<< * BYE Courier-IMAP server shutting down
<< 1 OK LOGOUT completed
>> 1 LOGOUT
<< * BYE Logging out
<< 1 OK Logout completed.
If there is anything interesting here, or something you want to test against, I can make a debugging account on both the src and dst for you.