MBOX-Line: From brendan at kublai.com  Thu Apr  5 11:35:35 2012
To: imap-protocol@u.washington.edu
From: Brendan Cully <brendan@kublai.com>
Date: Fri Jun  8 12:34:48 2018
Subject: [Imap-protocol] Question about FETCH command
In-Reply-To: <4F7DDF6B.5030609@earthlink.net>
References: <4F7DDF6B.5030609@earthlink.net>
Message-ID: <20120405183535.GA13832@paraiba>

On Thursday, 05 April 2012 at 13:07, Rick Sanders wrote:
> Just to close out this thread I did not find a solution or workaround
> to the problem the Exchange 2007 IMAP server has with FETCH commands
> like this:
> 
> >1 fetch 1 (BODY[HEADER (DATE)])
> >1 BAD Command Argument Error. 11
> 
> I wound up by issuing a BODY[HEADER] command and grabbing the items I
> need from the response.

I think you could also try falling back to IMAP4 mode:
1 FETCH 1 (RFC822.HEADER.LINES (DATE))

