curl / Mailing Lists / curl-library / Single Mail

curl-library

imap download broken?

From: Christian Schmitz via curl-library <curl-library_at_cool.haxx.se>
Date: Wed, 19 Dec 2018 17:44:51 +0100

Hi,

Did the imap download break in last releases?

To test without my own software, I just build a fresh copy of the command line tool:

curl 7.63.0 (x86_64-apple-darwin17.7.0) libcurl/7.63.0 OpenSSL/1.1.0e zlib/1.2.11 libssh2/1.8.0
Release-Date: 2018-12-12
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: AsynchDNS IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRP UnixSockets HTTPS-proxy

A query with imap://imap.macsw.de/INBOX/ finds the list of mailboxes.

A query with --request "FETCH 1:* FLAGS" returns:

> A004 FETCH 1:* FLAGS
< * 1 FETCH (FLAGS (\Seen))
* 1 FETCH (FLAGS (\Seen))
< * 2 FETCH (FLAGS (\Seen))
* 2 FETCH (FLAGS (\Seen))
< * 3 FETCH (FLAGS (\Seen))
* 3 FETCH (FLAGS (\Seen))
< * 4 FETCH (FLAGS (\Seen))
* 4 FETCH (FLAGS (\Seen))

Now the call with "imap://imap.macsw.de/INBOX/;UID=1" gives error 78.

This is output:

< A002 OK Logged in
> A003 SELECT INBOX
< * FLAGS (\Answered \Flagged \Deleted \Seen \Draft)
< * OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft \*)] Flags permitted.
< * 4 EXISTS
< * 0 RECENT
< * OK [UIDVALIDITY 1273175154] UIDs valid
< * OK [UIDNEXT 107] Predicted next UID
< * OK [HIGHESTMODSEQ 41] Highest
< A003 OK [READ-WRITE] Select completed (0.001 + 0.000 secs).
> A004 UID FETCH 1 BODY[]
< A004 OK Fetch completed (0.001 + 0.000 secs).
> A005 LOGOUT
< * BYE Logging out
< A005 OK Logout completed (0.001 + 0.000 secs).
* Closing connection 0
curl: (78) Remote file not found

Can anyone confirm?
Is this a bug?
Or did something change?

Sincerely
Christian

-- 
Read our blog about news on our plugins:
http://www.mbsplugins.de/
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2018-12-19