-
Notifications
You must be signed in to change notification settings - Fork 67
RFE: Message-ID support #42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Now that stgit uses mailinfo, this is just creating an option to use the -m flag. A hard coded variant is simply:
|
Is there a config or cmdline option to disable this behavior? |
No, should there be? |
The Linux kernel subsystem maintainer workflow uses lore, b4, and DKIM attestation, so generally a Message-ID: tag is not required or used. I plan to delete Message-ID: tags after importing patches from mailing lists, at least until such time as Message-ID: becomes a requirement for submitting patches to the Linux kernel. It would save me a step if |
Well, let me put this a better way. My impression is that when a reference to an e-mail is needed, a kernel commit requires a link to a permanent e-mail archive. Something like:
Ah, now that I read the RFE text more closely, I see awilliam was asking for just such a thing. Anyway, I will have to convert or delete each Message-Id: tag, which takes away some convenience. |
This is great context @chucklever, thank you. I think I was a bit too cavalier in turning-on this message-id copying behavior by default, sorry about that. I'm also guilty of overlooking key details in @awilliam's original request--sorry about that too. Some options for the path forward:
Adding basic configurability (1 and 2) seems like a no-brainer. I'll take care of those. But I'm not feeling super confident about designing 3. Seems like we'd need configuration options covering:
I'm looking for help specifying the desired behaviors as well as suggestions for naming of the config options. |
Thank you for reconsidering. You probably want a hook for translating a message-id into a URL. The b4 tool appears to have a simple translation scheme. For example: is converted into
Maybe a subcommand could be added to b4 to do only this translation, then |
The new --message-id option enables capturing the Message-ID header as the Message-Id trailer when importing patches from emails. The Message-ID is no longer captured by default. I.e. StGit's default behavior reverts to as it was before v1.2. The new stgit.import.messageid config option may be set to enable this behavior by default. Partially addresses #42. Signed-off-by: Peter Grayson <[email protected]>
It would be useful if the Message-ID header could be extracted from email imports and optionally included in the commit log. For example, a new --msgid option to the import command would result in the following being appended to the commit log before any new sign-offs/acks/reviews:
Message-Id: [email protected]
Ideally configuration options might allow the Message-Id string to be changed and the reference to be manipulated (via regex?), such that this same support could generate:
Link: https://lore.kernel.org/r/[email protected]
This support would align well with better patch tracking that many maintainers are adopting. Thanks!
The text was updated successfully, but these errors were encountered: