We have Exchange 2003 and 2010 servers in our environment with IMAP access (non SSL) enabled to an Exchange 2010 client access server. After establishing an IMAP telnet connection and logging in as an Exchange 2010 mailbox user, if I execute
FETCH 1:* (FLAGS UID RFC822.SIZE INTERNALDATE BODY.PEEK[HEADER.FIELDS (Date To Cc From Subject X-Priority Importance Priority Content-Type)])
command, I receive a "BAD Command Argument Error. 11". However, the same command completes successfully without any errors for Exchange 2003 users. Also, the following command executes successfully as well for both versions:
FETCH 1:* (FLAGS UID RFC822.SIZE INTERNALDATE BODY.PEEK[HEADER.FIELDS ()])
It seems that the problem occurs only when I specify a header field. Do you have any idea what may cause this difference between the two Exchange versions?