Re: [DISCUSS] validation on git config user.email

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Sep 12, 2025 at 12:13:07PM +0800, usharerose wrote:
> Hi, Git Community,
> 
> I'm a Git user and curious about a specific aspect of Git's design
> regarding the 'user.email' configuration.
> 
> Git allows any kind of values without restriction when setting
> 'user.email' via 'git config' (e.g., `git config user.email
> "not-a-valid-email-address"`).

That's a valid email address on the local system. It will get expanded into
not-a-valid-email-address@localhost (or whatever domain is configured with the
local MTA).

> I'm interested in understanding the design philosophy or historical
> reasons behind this 'lack' of validation.

This may be insightful: https://e-mail.wtf

:)

-K




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux