diff options
author | Nicklas Avén <nicklas.aven@jordogskog.no> | 2018-07-31 13:12:18 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2018-09-06 10:57:48 +0200 |
commit | 6987fcef657710f800b05dd79ff744087b15c73d (patch) | |
tree | 47fcd664dcf9f7ee1b274c88eaa75e1faccf0837 /tests/data/test1420 | |
parent | 2825f46d950ca9b0e269ed8dc6a97c5238a17c30 (diff) | |
download | curl-6987fcef657710f800b05dd79ff744087b15c73d.tar.gz |
imap: change from "FETCH" to "UID FETCH"
... and add "MAILINDEX".
As described in #2789, this is a suggested solution. Changing UID=xx to
actually get mail with UID xx and add "MAILINDEX" to get a mail with a
special index in the mail box (old behavior). So MAILINDEX=1 gives the
first non deleted mail in the mail box.
Fixes #2789
Closes #2815
Diffstat (limited to 'tests/data/test1420')
-rw-r--r-- | tests/data/test1420 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/data/test1420 b/tests/data/test1420 index a5e1c5214..081ac6bbb 100644 --- a/tests/data/test1420 +++ b/tests/data/test1420 @@ -36,7 +36,7 @@ imap SSL_CERT_FILE= </setenv> <command> -'imap://%HOSTIP:%IMAPPORT/1420/;UID=1' -u user:secret --libcurl log/test1420.c +'imap://%HOSTIP:%IMAPPORT/1420/;MAILINDEX=1' -u user:secret --libcurl log/test1420.c </command> </client> @@ -64,7 +64,7 @@ int main(int argc, char *argv[]) hnd = curl_easy_init(); curl_easy_setopt(hnd, CURLOPT_BUFFERSIZE, 102400L); - curl_easy_setopt(hnd, CURLOPT_URL, "imap://%HOSTIP:%IMAPPORT/1420/;UID=1"); + curl_easy_setopt(hnd, CURLOPT_URL, "imap://%HOSTIP:%IMAPPORT/1420/;MAILINDEX=1"); curl_easy_setopt(hnd, CURLOPT_USERPWD, "user:secret"); curl_easy_setopt(hnd, CURLOPT_VERBOSE, 1L); curl_easy_setopt(hnd, CURLOPT_TCP_KEEPALIVE, 1L); |