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.