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

Re: format-patch: "magic" mbox timestamp

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 10, 2020, 23:13 UTC
Message-ID
<xmqqmtzo6c0d.fsf@gitster.c.googlers.com>
In-Reply-To
<CAETBDP6d8UwiJEF_pX0p=xLG79pwHeEtectmOnjPiUpjUCPaqw@mail.gmail.com>
Brandon Richardson <brandon1024.br@gmail.com> writes:
Show 8 quoted lines
> Please correct me if I'm wrong, but I'm assuming the "UNIX mailbox
> format" referenced in the docs refers to the mbox database format
> described in appendix A of RFC-4155. If so, since we use a commit id
> in place of the sender email address, would that itself be sufficient
> to indicate that the output isn't from a real mailbox? A commit id
> will never match the addr-spec in RFC-2822, so I figure that anyone
> looking at `format-patch` output could safely assume that it did not
> originate from a mailbox.

I vaguely recall that it was possible for the "From" line that begins each message in a UNIX mbox had a local sender without "@", so it would be a bit wider than addr-spec and a string of raw hexadecimal digits would not sufficiently "strange" enough to serve as a "magic" identifier.

Previous: Junio C Hamano
Message 4 of 4 in “format-patch: "magic" mbox timestamp”
  1. Brandon RichardsonNov 10, 2020
  2. Johannes SchindelinNov 10, 2020
  3. Junio C HamanoNov 10, 2020
  4. Junio C HamanoNov 10, 2020

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.