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

Re: Gmail and unwanted line-wrapping

From
Jay Soffian <jaysoffian@gmail.com>
Date
Feb 7, 2010, 00:50 UTC
Message-ID
<76718491002061650ge299426s22de5e00b26af108@mail.gmail.com>
In-Reply-To
<20100207002413.GA14744@gmail.com>
> I've added it to the Git Wiki:
> http://git.wiki.kernel.org/index.php/GitTips#Using_gmail_to_send_your_patches

If you're on MacOS X and have MacPorts installed, then install both the curl and msmtp packages, then use an .msmtprc as follows:

defaults tls on tls_trust_file /opt/local/share/curl/curl-ca-bundle.crt syslog LOG_MAIL

# gmail account gmail host smtp.gmail.com port 587 auth on from jaysoffian@gmail.com user jaysoffian@gmail.com

# Default account account default : gmail

Adjusting for you account of course. And in your git config:
[sendemail]
	smtpserver = /opt/local/bin/msmtp

Now why would you do this you ask instead of using git's built-in SMTP support? Because I provided a patch to msmtp long ago that lets it access your gmail password from Mac OS X's keychain. Note that it looks for a password stored in the same format as Mail.app would store it, see the msmtp man page for details.

FWIW, I think Gnome also has a keychain like thingy that msmtp can also query.
j.
Previous: David AguilarNext: Jay Soffian
Message 4 of 8 in “Gmail and unwanted line-wrapping”
  1. Aaron CraneFeb 6, 2010
  2. Sverre RabbelierFeb 6, 2010
  3. David AguilarFeb 7, 2010
  4. Jay SoffianFeb 7, 2010
  5. Jay SoffianFeb 7, 2010
  6. Erik Faye-LundFeb 8, 2010
  7. Jacob HelwigFeb 6, 2010
  8. Sverre RabbelierFeb 6, 2010

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.