curl / Mailing Lists / curl-library / Single Mail


Re: Fetching emails via imap without setting the "\Seen" flag (i.e. using BODY.PEEK)

From: Daniel Stenberg via curl-library <>
Date: Fri, 15 Mar 2019 09:25:36 +0100 (CET)

On Thu, 14 Mar 2019, Luca Di Rocco via curl-library wrote:

> Since I didn't have so much time to investigate and understand all the
> software structure, I focused on imap.c and implemented a simple trick.
> In the imap_state_select_resp function, after a custom command is
> successfully sent, I parse the command to check if it meets one of the 4
> formats above.


> I have attached the patch file,

This is hardly an approach that we can use in curl so while this might fix
Luca's current problem, it is not a patch we can merge as-is.

I would be interested in discussing what we should or could do to support this
feature in a more proper and curl-friendly way.

Received on 2019-03-15