imap: Added the ability to FETCH a specific UID and SECTION
authorJiri Hruska <jirka@fud.cz>
Sat, 23 Feb 2013 21:05:19 +0000 (22:05 +0100)
committerSteve Holme <steve_holme@hotmail.com>
Sat, 23 Feb 2013 21:11:47 +0000 (21:11 +0000)
commit5c5b7c7146b07c15c72ff80f0b2438659a827f29
treebe0c2f87382267d20bb4e7e04fb643cdae297cec
parent7f6c7331b2c061d1761717bcd1595e5941a35072
imap: Added the ability to FETCH a specific UID and SECTION

Updated the FETCH command to send the UID and SECTION parsed from the
URL. By default the BODY specifier doesn't include a section, BODY[] is
now sent whereas BODY[TEXT] was previously sent. In my opinion
retrieving just the message text is rarely useful when dealing with
emails, as the headers are required for example, so that functionality
is not retained. In can however be simulated by adding SECTION=TEXT to
the URL.

Also updated test801 and test1321 due to the BODY change.
lib/imap.c
tests/data/test1321
tests/data/test801