You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I make a custom IMAP request UID FETCH 34 BODY[]. When I call curl_easy_perform on it, my custom write function only receives this:
* 2 FETCH (UID 34 BODY[] {571}
verbose output:
> A004 UID FETCH 34 BODY[]
< * 2 FETCH (UID 34 BODY[] {571}
< Return-Path: ...
< Received: from ...
< X-Sieve: ...
< To: ...
< From: ...
< Subject: test
< Message-ID: ...
< Date: Tue, 29 Nov 2016 17:42:09 +0100
< MIME-Version: 1.0
< Content-Type: text/plain; charset=utf-8; format=flowed
< Content-Transfer-Encoding: 7bit
<
< this is a test
< )
< A004 OK Completed (0.000 sec)
I expected the following
I expected my custom write function to receive the entire header and body of the mail instead of just the first line of the response. I expected it to behave the same as when calling curl_easy_perform without a custom request, but with the URL set to imaps://servername/INBOX;UID=1.
This is the verbose output when calling imaps://servername/INBOX;UID=1:
> A004 FETCH 1 BODY[]
< * 2 FETCH (BODY[] {571}
* Found 571 bytes to download
* Written 571 bytes, 0 bytes are left for transfer
< )
< A004 OK Completed (0.000 sec)
In this case my custom write function gets called with the entire header and body of the mail.
curl/libcurl version
curl-7.52.0-20161129.tar.bz2
operating system
ubuntu 14.04
P.S.: The problem doesn't seem to be connected to the fact that one does a UID FETCH and the other a normal FETCH because the exact same problem appears when I execute FETCH 1 BODY[] as a custom request instead of executing it implicitly by calling the URL imaps://servername/INBOX;UID=1.
The text was updated successfully, but these errors were encountered:
I did this
I make a custom IMAP request
UID FETCH 34 BODY[]
. When I callcurl_easy_perform
on it, my custom write function only receives this:verbose output:
I expected the following
I expected my custom write function to receive the entire header and body of the mail instead of just the first line of the response. I expected it to behave the same as when calling
curl_easy_perform
without a custom request, but with the URL set to imaps://servername/INBOX;UID=1.This is the verbose output when calling imaps://servername/INBOX;UID=1:
In this case my custom write function gets called with the entire header and body of the mail.
curl/libcurl version
curl-7.52.0-20161129.tar.bz2
operating system
ubuntu 14.04
P.S.: The problem doesn't seem to be connected to the fact that one does a
UID FETCH
and the other a normalFETCH
because the exact same problem appears when I executeFETCH 1 BODY[]
as a custom request instead of executing it implicitly by calling the URL imaps://servername/INBOX;UID=1.The text was updated successfully, but these errors were encountered: