From 5c5b7c7146b07c15c72ff80f0b2438659a827f29 Mon Sep 17 00:00:00 2001 From: Jiri Hruska Date: Sat, 23 Feb 2013 22:05:19 +0100 Subject: 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. --- tests/data/test1321 | 2 +- tests/data/test801 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/data') diff --git a/tests/data/test1321 b/tests/data/test1321 index 7589534f7..c7ae7daa5 100644 --- a/tests/data/test1321 +++ b/tests/data/test1321 @@ -59,7 +59,7 @@ imap://%HOSTIP:%IMAPPORT/1321 -u user:secret -p -x %HOSTIP:%PROXYPORT A001 CAPABILITY A002 LOGIN user secret A003 SELECT 1321 -A004 FETCH 1 BODY[TEXT] +A004 FETCH 1 BODY[] A005 LOGOUT diff --git a/tests/data/test801 b/tests/data/test801 index 67e10997f..793b2781d 100644 --- a/tests/data/test801 +++ b/tests/data/test801 @@ -41,7 +41,7 @@ imap://%HOSTIP:%IMAPPORT/801 -u user:secret A001 CAPABILITY A002 LOGIN user secret A003 SELECT 801 -A004 FETCH 1 BODY[TEXT] +A004 FETCH 1 BODY[] A005 LOGOUT -- cgit v1.2.3