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

Re: git send-email sets date

From
EWEric Wong <e@80x24.org>
Date
Jan 29, 2018, 12:48 UTC
Message-ID
<20180129124835.ngeywe7qstmzx555@untitled>
In-Reply-To
<CACBZZX7W4n9Q-uL0t1W1dttAxA=hU69fL9Tqsfe0wj5XP=O44w@mail.gmail.com>
Ævar Arnfjörð Bjarmason <avarab@gmail.com> wrote:
> On Fri, Jan 26, 2018 at 6:32 PM, Michal Suchánek <msuchanek@suse.de> wrote:
> > This is wrong because the message will most likely not get delivered
> > when the author date differs from current time.

Even by a few seconds? I guess it depends on how many patches you're sending at once. It uses number of patches to set Date: header:

	$time = time - scalar $#files;
	(and does $time++ for each patch)
Show 7 quoted lines
> Others have covered other bases here, but I just wanted to ask about
> this. Are there really mail setups that refuse to deliver or accept
> messages whose Date headers don't match what the expect? I would think
> that such issues wouldn't be present in the wild since SMTP daemons
> need to deal with messages that are e.g. held locally somewhere, or
> the only make it to your server days afterwards due to your own
> downtime + client retries.

Having a Date that's far off is one of many indicators used to determine spam. SpamAssassin has a rules and scores which do this, but it looks like the smallest one is for 3 and 6 hours in the past (DATE_IN_PAST_03_06) so one would need 10800 patches to trigger it (!?)

I definitely had problems back in the day with author date being used as the Date: header, see:

	commit 1d6a003a42b3c23ad7883b0bbe6a034728e51836
	("git-send-email: do not pass custom Date: header")
Previous: Ævar Arnfjörð BjarmasonNext: Junio C Hamano
Message 7 of 8 in “git send-email sets date”
  1. Michal SuchánekJan 26, 2018
  2. brian m. carlsonJan 28, 2018
  3. Philip OakleyJan 28, 2018
  4. Theodore Ts'oJan 28, 2018
  5. Junio C HamanoJan 30, 2018
  6. Ævar Arnfjörð BjarmasonJan 28, 2018
  7. Eric WongJan 29, 2018
  8. Junio C HamanoJan 30, 2018

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.