all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Marius Bakke <mbakke@fastmail.com>
To: Pierre Neidhardt <ambrevar@gmail.com>
Cc: guix-devel <guix-devel@gnu.org>
Subject: Re: Use .authinfo for git credentials
Date: Wed, 25 Apr 2018 12:42:11 +0200	[thread overview]
Message-ID: <87o9i78t4s.fsf@fastmail.com> (raw)
In-Reply-To: <87fu3jmvxm.fsf@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1777 bytes --]

Pierre Neidhardt <ambrevar@gmail.com> writes:

> Marius Bakke <mbakke@fastmail.com> 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=<host>
>            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)

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

  reply	other threads:[~2018-04-25 10:42 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-25  9:23 Use .authinfo for git credentials Pierre Neidhardt
2018-04-25 10:07 ` Marius Bakke
2018-04-25 10:17   ` Pierre Neidhardt
2018-04-25 10:42     ` Marius Bakke [this message]
2018-04-25 19:02   ` Efraim Flashner
2018-04-27  3:11 ` Chris Marusich
2018-04-27  9:23   ` Pierre Neidhardt
2018-05-18  9:26     ` Pierre Neidhardt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87o9i78t4s.fsf@fastmail.com \
    --to=mbakke@fastmail.com \
    --cc=ambrevar@gmail.com \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.