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

Re: git-send-email generates mail with invalid Message-Id

From
NSNicolas Sebrecht <nicolas.s.dev@gmx.fr>
Date
Jul 28, 2009, 15:07 UTC
Message-ID
<20090728150745.GB16168@vidovic>
In-Reply-To
<40aa078e0907280510s1afee3ddw3a9333620a3c7d7a@mail.gmail.com>
The 28/07/09, Erik Faye-Lund wrote:
Show 7 quoted lines
> 
> Here's an attempt to fix the case when Sys::Hostname::hostname returns
> "" (domains aren't allowed to be empty if I read RFC2822 correctly).
>
> The problem with the previous attempt was that the earlier if assigned
> "user@" to $du_part, so the last if was never entered ($du_part was
> always defined).
Yes, thank you.
> I generally don't write Perl, so people will most likely barf all over
> this one, but at least it should show the concept. It might not even
> work.
Looks ok here.
> I also suspect that it is not needed.

I'm not sure because http://linux.die.net/man/2/gethostname does not tell either (and POSIX neither).

That said, I tend to think it worth to merge this fix before having a bug report.

-- 
Nicolas Sebrecht
Previous: Erik Faye-Lund
Message 13 of 13 in “git-send-email generates mail with invalid Message-Id”
  1. Frans PopJul 28, 2009
  2. Erik Faye-LundJul 28, 2009
  3. Thomas RastJul 28, 2009
  4. Erik Faye-LundJul 28, 2009
  5. Thomas RastJul 28, 2009
  6. Frans PopJul 28, 2009
  7. Frans PopJul 28, 2009
  8. Nicolas SebrechtJul 28, 2009
  9. Frans PopJul 28, 2009
  10. Nicolas SebrechtJul 28, 2009
  11. Erik Faye-LundJul 28, 2009
  12. Erik Faye-LundJul 28, 2009
  13. Nicolas SebrechtJul 28, 2009

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.