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

Re: gmail smtp server and git-send-mail. Is this combination working?

From
Baz <brian.ewins@gmail.com>
Date
Jan 11, 2008, 12:19 UTC
Message-ID
<2faad3050801110419h20acbda8me1cbdb4c6e06a086@mail.gmail.com>
In-Reply-To
<4d8e3fd30801101449u11aabd73mba233301df157160@mail.gmail.com>
On Jan 10, 2008 10:49 PM, Paolo Ciarrocchi <paolo.ciarrocchi@gmail.com> wrote:
Show 23 quoted lines
> On Jan 10, 2008 4:45 AM, Douglas Stockwell <doug@11011.net> wrote:
> > Paolo Ciarrocchi wrote:
> >
> > > Well, it would be nice to add this information to the wiki, it's still
> > > mentioning
> > > that you require an external program for supporting the TLS connection.
> > > I'll do that when I'll get my box working with the configuration you suggested,
> > >
> > > What I'm getting at the moment is:
> > > paolo@paolo-desktop:~/git$ git-send-email -compose -to
> > > paolo.ciarrocchi@gmail.com /home/paolo/Desktop/patch/
> > > snip
> > > snip
> > > Can't locate Net/SMTP/SSL.pm in @INC (@INC contains:
> >
> > As indicated, the module you need is Net::SMTP::SSL, if there is no
> > package for ubuntu, you can install it using CPAN:
> >
> > perl -MCPAN -e 'install Net::SMTP::SSL'
>
> I'm now getting:
> Unable to initialize SMTP properly.  Is there something wrong with
> your config? at /home/paolo/bin/git-send-email line 638.

You also need to have Authen::SASL installed. Do you have that? As I recall I needed to edit the code to even see that error.

With Authen::SASL and Net::SMTP::SSL, you can get 1 patch at a time in via gmail. The alternative connection mode which git-send-email doesn't support yet is to connect over smtp then negotiate TLS using 'STARTTLS'. If you do this then you can send multiple patches via gmail with a single call to git-send-email.

There was a patch offered a while back from Simon Sasburg to add starttls support to git-send-email. At the time I questioned it but I hadn't seen the 1-patch-at-a-time limit then. Thread: http://kerneltrap.org/mailarchive/git/2007/10/31/373400 (nb the key thing added by this patch is starttls, not tls)

>
> I tried to get help on #git but I failed, it looks like other people
> are getting the same error.

Hope this helps, Baz

Show 11 quoted lines
>
> Ciao,
> --
> Paolo
> http://paolo.ciarrocchi.googlepages.com/
> -
>
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
Previous: Paolo CiarrocchiNext: Douglas Stockwell
Message 10 of 14 in “gmail smtp server and git-send-mail. Is this combination working?”
  1. Paolo CiarrocchiJan 8, 2008
  2. Jason SewallJan 8, 2008
  3. Pascal ObryJan 8, 2008
  4. Imran M YousufJan 9, 2008
  5. Douglas StockwellJan 9, 2008
  6. Paolo CiarrocchiJan 9, 2008
  7. Douglas StockwellJan 10, 2008
  8. Paolo CiarrocchiJan 10, 2008
  9. Paolo CiarrocchiJan 10, 2008
  10. BazJan 11, 2008
  11. Douglas StockwellJan 11, 2008
  12. BazJan 11, 2008
  13. Paolo CiarrocchiFeb 24, 2008
  14. Paolo CiarrocchiJan 10, 2008

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.