curl imap error 78 when trying to download email

Asked by Jim Pye on 2020-02-02

Just checking before I commit a bug report. Did several searches within Ubuntu forums etc.

The version of curl included in Ubuntu 18.04 LTS has a bug that causes the imap sub-command/scheme to return Error 78 File not found when it should return the contents of the email.

This is documented in the Bug Report on GitHub as: https://github.com/curl/curl/issues/4479

The version supplied in Ubuntu 19.10, and future 20.04 LTS will be the fixed version.

Ubuntu 18.04
Version:
$ curl -V
curl 7.58.0 (x86_64-pc-linux-gnu) libcurl/7.58.0 OpenSSL/1.1.1 zlib/1.2.11 libidn2/2.0.4 libpsl/0.19.1 (+libidn2/2.0.4) nghttp2/1.30.0 librtmp/2.3
Release-Date: 2018-01-24
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp smb smbs smtp smtps telnet tftp
Features: AsynchDNS IDN IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz TLS-SRP HTTP2 UnixSockets HTTPS-proxy PSL

Command:
$ curl --insecure --url "imaps://email.example.co.nz/Spam;UID=33" -n
curl: (78) Remote file not found

Ubuntu 19.10
Version:
$ curl -V
curl 7.65.3 (x86_64-pc-linux-gnu) libcurl/7.65.3 OpenSSL/1.1.1c zlib/1.2.11 libidn2/2.2.0 libpsl/0.20.2 (+libidn2/2.0.5) libssh/0.9.0/openssl/zlib nghttp2/1.39.2 librtmp/2.3
Release-Date: 2019-07-19
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: AsynchDNS GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets

Command:
$ curl --insecure --url "imaps://email.eample.co.nz/Spam;UID=33" -n
Return-Path: <email address hidden>
Received: from email.example.co.nz ([unix socket])
  by email (Cyrus x.xx.xx. with LMTPA;
  Tue, 28 Jan 2020 22:05:56 +1300
X-Sieve: CMU Sieve x.x
8x ---- Snip ---- x8

Just wanted to check if my search Foo has let me down before I report it as a bug

Cheers
Jim

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
2020-02-02
Last reply:
2020-02-03

I suggest you report a bug

Can you help with this problem?

Provide an answer of your own, or ask Jim Pye for more information if necessary.

To post a message you must log in.