From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marius Bakke Subject: Re: Use .authinfo for git credentials Date: Wed, 25 Apr 2018 12:42:11 +0200 Message-ID: <87o9i78t4s.fsf@fastmail.com> References: <87k1svmygw.fsf@gmail.com> <87r2n38uqg.fsf@fastmail.com> <87fu3jmvxm.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53179) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fBHsQ-0003aQ-Pc for guix-devel@gnu.org; Wed, 25 Apr 2018 06:42:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fBHsM-0002EJ-Rf for guix-devel@gnu.org; Wed, 25 Apr 2018 06:42:18 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:51947) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fBHsM-0002Dv-La for guix-devel@gnu.org; Wed, 25 Apr 2018 06:42:14 -0400 In-Reply-To: <87fu3jmvxm.fsf@gmail.com> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Pierre Neidhardt Cc: guix-devel --=-=-= Content-Type: text/plain Pierre Neidhardt writes: > Marius Bakke writes: > >> I use 'msmtp' as the transport and have configured it to look up >> passwords from 'password-store'. >> >> $ git config --get-regexp sendemail.* >> sendemail.smtpserver /home/marius/.guix-profile/bin/msmtp >> sendemail.envelopesender auto > > From the (1)git-send-email man page: > > --8<---------------cut here---------------start------------->8--- > --smtp-server= > If set, specifies the outgoing SMTP server to use (e.g. > smtp.example.com or a raw IP address). Alternatively it can specify > a full pathname of a sendmail-like program instead; the program > must support the -i option. Default value can be specified by the > sendemail.smtpServer configuration option; the built-in default is > to search for sendmail in /usr/sbin, /usr/lib and $PATH if such > program is available, falling back to localhost otherwise. > --8<---------------cut here---------------end--------------->8--- > > The smtp program must support the -i option. > > I use Emacs' message-send to send e-mails. > I don't think Emacs accepts the -i option. > > I could write a wrapper, but I don't think this is the most ideal > option. I see. FWIW my emacs uses 'msmtp' too, with this snippet: (setq mail-specify-envelope-from t message-sendmail-envelope-from 'header mail-envelope-from 'header sendmail-program "/home/marius/.guix-profile/bin/msmtp" mail-host-address "fastmail.com" send-mail-function 'message-send-mail-with-sendmail message-send-mail-function 'message-send-mail-with-sendmail message-directory "~/Mail/drafts" message-kill-buffer-on-exit t) --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAlrgW4MACgkQoqBt8qM6 VPpAEQf/fOLz1tXJ76AVMERQecfZdcBEUQXES91vTwc6TYLdfv2jUMMqdlRYdOBm 9XEO4ifnaCjT7789yf3CH5ZxgHaRFAdGBMA0qwWwvYsINrdg+hyZOxoYviV8VNXq fHVpZ9UC9af3DZSifhyvuIuTn/yVQ7mzaCjqf55RjVBnuE/Lf1S7/ce/JQruRBIE ZKCvczdwj/3UuEiKPucdkXUEosYHbocpz/oI7ODe5FIL3NZUqQqEGAwg3kPvQe39 +ZxT3OWrAJZVZHvhU6BctYkmARyOPSVoG1g6pJnAiOLwIKForcF6mT/gwp1RLa2j dodV4t/5MX8ornQgWNJOmlgCk3tykg== =Gudq -----END PGP SIGNATURE----- --=-=-=--