MBOX-Line: From petite_abeille at mac.com  Sun Nov 27 06:36:39 2011
To: imap-protocol@u.washington.edu
From: Petite Abeille <petite_abeille@mac.com>
Date: Fri Jun  8 12:34:47 2018
Subject: [Imap-protocol] [noob] fetch command with repeating attributes?
Message-ID: <BAA75CE5-7AE6-4C96-821E-A56A41337B9F@mac.com>

Hello,

Can the fetch command contain the same attribute multiple times?

For example, the following request , curtesy of dbmail test suite [1], sports the BODY.PEEK attribute twice, for two different header fields:

C0000A UID FETCH 1:* (BODY.PEEK[HEADER.FIELDS (Subject)] BODY.PEEK[HEADER.FIELDS (Message-Id)] ENVELOPE RFC822.SIZE UID FLAGS INTERNALDATE)

Is such fetch request compliant? Can the fetch attributes be repeated multiple times?

If yes, what's the expected response? Two BODYs, one for each header? One BODY with the two requested fields? Either?

Thanks in advance.

[1] testfetch.txt


