MBOX-Line: From rfs9999 at earthlink.net  Tue Apr  3 16:34:43 2012
To: imap-protocol@u.washington.edu
From: Rick Sanders <rfs9999@earthlink.net>
Date: Fri Jun  8 12:34:48 2018
Subject: [Imap-protocol] Question about FETCH command
In-Reply-To: <20120209112411.GB29734@launde.brong.net>
References: <1328732126.32086.140661033971485@webmail.messagingengine.com>
	<201202090820.28260.thomas@koch.ro> <4F337E61.5040702@qbik.com>
	<20120209112411.GB29734@launde.brong.net>
Message-ID: <4F7B8913.4060308@earthlink.net>

I'm working with an IMAP server which gives errors in response to what 
seem to me to be valid FETCH commands.

BODY[HEADER] works but if I try to select any header fields the IMAP 
says 'command argument error'.

1 fetch 1 (BODY[HEADER.FIELDS (MESSAGE-ID)])
1 BAD Command Argument Error. 11

1 fetch 1 (BODY[HEADER.FIELDS (From)])
1 BAD Command Argument Error. 11

1 fetch 1 (BODY[HEADER.FIELDS (Date)])
1 BAD Command Argument Error. 11

Some info about the server:

Microsoft Exchange Server 2007 IMAP4
* CAPABILITY IMAP4 IMAP4rev1 AUTH=NTLM AUTH=GSSAPI AUTH=PLAIN STARTTLS 
IDLE NAMESPACE LITERAL+

I haven't seen any other servers respond this way.  What am I missing or 
doing wrong?  I can send BODY[HEADER] and parse the fields I want from 
the response of course if I have to.

Thanks,
Rick



