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

Re: [PATCH v6 2/2] send-email: show the new message id assigned by outlook in the logs

From
Junio C Hamano <gitster@pobox.com>
Date
May 29, 2025, 16:01 UTC
Message-ID
<xmqq5xhjmmno.fsf@gitster.g>
In-Reply-To
<caf46596a709df7205495b75da569baef2c7c9a2.1748529954.git.gargaditya08@live.com>
Aditya Garg <gargaditya08@live.com> writes:
Show 6 quoted lines
> This patch fixes this by modifying the $header variable, which is
> responsible for showing the logs at the end. Also, the log which states
> that the Message-ID has been changed will now be shown only when
> smtp-debug is enabled, since the main log having all of the headers is
> anyways displaying the new Message-ID. It should look like this after
> this patch:

We do not say "This patch does X" or "I do Y" when describing a change. Rather, you give an order to somebody who is modifying the codebase to "make it so". Something like ...

    Fix this by updating the $header variable, which has the message
    ID we internally assigned on the "Message-ID:" header, with the
    message ID the Outlook server assigned.
The change itself looks good, but ...
> +				# Replace the original Message-ID in $header with the new one
> +				$header =~ s/^(Message-ID:\s*).*\n/${1}$message_id\n/m;

... is the comment adding any useful information over what the code already says?

Will queue, with a typofix to "incrmented" in [1/2].
Thanks.
Previous: Aditya GargNext: Aditya Garg
Message 7 of 14 in “send-email: fix threads breaking in case user edits emails and improvements to outlook ID fix.”
  1. 0/2 send-email: fix threads breaking in case user edits emails and improvements to outlook ID fix.Aditya Garg, May 26, 2025
  2. 1/2 send-email: fix bug resulting in increased message number if a message is editedAditya Garg, May 26, 2025
  3. 2/2 send-email: show the new message id assigned by outlook in the logsAditya Garg, May 26, 2025
  4. 0/2 send-email: fix threads breaking in case user edits emails and improvements to outlook ID fix.Aditya Garg, May 29, 2025
  5. 1/2 send-email: fix bug resulting in broken threads if a message is editedAditya Garg, May 29, 2025
  6. 2/2 send-email: show the new message id assigned by outlook in the logsAditya Garg, May 29, 2025
  7. Junio C HamanoMay 29, 2025
  8. Aditya GargMay 29, 2025
  9. Junio C HamanoJun 4, 2025
  10. Aditya GargJun 4, 2025
  11. 0/2 send-email: fix threads breaking in case user edits emails and improvements to outlook ID fix.Aditya Garg, Jun 4, 2025
  12. 2/2 send-email: show the new message id assigned by outlook in the logsAditya Garg, Jun 4, 2025
  13. 1/2 send-email: fix bug resulting in broken threads if a message is editedAditya Garg, Jun 4, 2025
  14. Junio C HamanoJun 4, 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.