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

Re: t9001 fails because Net::SMTP is missing

From
EWEric Wong <normalperson@yhbt.net>
Date
May 31, 2006, 06:05 UTC
Message-ID
<20060531060530.GA9333@hand.yhbt.net>
In-Reply-To
<7v4pz7yqpd.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano <junkio@cox.net> wrote:
Show 17 quoted lines
> Junio C Hamano <junkio@cox.net> writes:
> 
> > Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
> >
> >> is it unexpected that there are setups which come without Net::SMTP?
> >>
> >> -- snip --
> >> * expecting success: git format-patch -n HEAD^1
> >>      git send-email -from="Example <nobody@example.com>" 
> >> --to=nobody@example.com --smtp-server="$(pwd)/fake.sendmail" ./0001*txt
> >> 0001-Second.txt
> >> Can't locate Net/SMTP.pm in @INC (@INC contains: 
> >
> > Hmm.  Something like this?
> 
> Nah, nevermind.  I forgot my Perl that use has the magic BEGIN{}
> block around it X-<.

s/use/require/ and you should be fine. We don't need any thing imported from Net::SMTP, either.

Odd that Net::SMTP isn't installed on Johannes' machine, though, as it's part of the standard Perl 5.8 (maybe even before) installation.

-- 
Eric Wong
Previous: Morten WelinderNext: Johannes Schindelin
Message 5 of 6 in “t9001 fails because Net::SMTP is missing”
  1. Johannes SchindelinMay 30, 2006
  2. Junio C HamanoMay 31, 2006
  3. Junio C HamanoMay 31, 2006
  4. Morten WelinderMay 31, 2006
  5. Eric WongMay 31, 2006
  6. Johannes SchindelinMay 31, 2006

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.