Re: [PATCH v3] send-email: add --[no-]outlook-id-fix option
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Apr 29, 2025, 15:57 UTC
- Message-ID
- <xmqqikmn7yfo.fsf@gitster.g>
- In-Reply-To
- <PN3PR01MB9597274E541169BDB8DC4297B8802@PN3PR01MB9597.INDPRD01.PROD.OUTLOOK.COM>
Aditya Garg <gargaditya08@live.com> writes:
> + --[no-]outlook-id-fix * This server munges Message-ID. Retrieve it from > + the server.
We know how to retrieve the new message-id only from Outlook server, but I fear that the above does not convey it (unless we count the substring "outlook" in the option name). I came up with
--[no-]outlook-id-fix * The smtp host is an Outlook server that
munges the Message-ID.as a replacement, but I am not sure if it is much better.
> - --no-smtp-auth Disable SMTP authentication. Shorthand for > + --no-smtp-auth * Disable SMTP authentication. Shorthand for > `--smtp-auth=none`
Good eyes.
As long as it is mentioned in the proposed log message, it is OK to make such a small and unrelated correction "while at it".
$ git log -p --grep=While.at.it
will find many existing examples.
Show 8 quoted lines
> sub is_outlook {
> my ($host) = @_;
> - return ($host eq 'smtp.office365.com' || $host eq 'smtp-mail.outlook.com');
> + if ($outlook_id_fix eq 'auto') {
> + $outlook_id_fix =
> + ($host eq 'smtp.office365.com' ||
> + $host eq 'smtp-mail.outlook.com') ? 1 : 0;
> + } return $outlook_id_fix;No syntax error here, but let's have the final "return $outlook_id_fix;" on its own line after "if (...) { ... }" statement.