git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] imap-send: add option to mark sent messages as read or unread

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 23, 2025, 17:52 UTC
Message-ID
<xmqqy0sen6ak.fsf@gitster.g>
In-Reply-To
<xmqqecu6om3t.fsf@gitster.g>
Junio C Hamano <gitster@pobox.com> writes:
Show 17 quoted lines
> Aditya Garg <gargaditya08@live.com> writes:
>
>> +	if (mark_seen) {
>> +		curl_easy_setopt(curl, CURLOPT_UPLOAD_FLAGS, CURLULFLAG_SEEN);
>> +	} else {
>> +		curl_easy_setopt(curl, CURLOPT_UPLOAD_FLAGS, 0L);
>> +	}
>> +
>
> Why so many braces around single-statement blocks?
>
> According to
>
> https://github.com/curl/curl/blob/master/docs/libcurl/symbols-in-versions
>
> CURLULFLAG_SEEN first appeared in 8.13.0; INSTALL says we require 7.61.0
> or later, so this may be OK.
It might be obvious, but I meant "may not be OK" here.
Previous: Junio C Hamano
Message 8 of 8 in “imap-send: add option to mark sent messages as read or unread”
  1. imap-send: add option to mark sent messages as read or unreadAditya Garg, Jul 23, 2025
  2. Junio C HamanoJul 23, 2025
  3. Aditya GargJul 23, 2025
  4. Aditya GargJul 23, 2025
  5. Junio C HamanoJul 23, 2025
  6. Aditya GargJul 23, 2025
  7. Junio C HamanoJul 23, 2025
  8. Junio C HamanoJul 23, 2025

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.