top | item 37856196

(no title)

severus_snape | 2 years ago

  # do your code change
  git commit
  git send-email --to=<some mailing list> -1

  # amend your change
  git commit --amend
  git send-email -v2 --to=<some mailing list> -1
I'm not sure what is needlessly annoying and absurd.

Edit with minimal configuration:

  cat ~/.gitconfig

  [user]
   email = your@mail.address
   name = Your Name
  
  [sendemail]
   smtpuser = your@mail.address
   smtpserver = smtp.whatever.com
   smtpserverport = 587
   smtpencryption = tls

discuss

order

oefrha|2 years ago

You left out the entire configure SMTP step. Honestly I’m not even sure how to do that if your SMTP server requires 2FA and does not allow legacy app specific passwords.

tlamponi|2 years ago

Every mail server/provider that provides 2FA that I used allows for configuring "tokens" (called a bit different everywhere) which are a high entropy random string, and some of them require TFA only for IMAP or POP, i.e., getting mail, not SMTP, i.e., sending mail.

sir|2 years ago

If you use this proxy of mine then any IMAP (or POP/SMTP) client can be used with a “modern” email provider, regardless of whether it supports OAuth 2.0 natively: https://github.com/simonrob/email-oauth2-proxy. No need for your client to know about OAuth at all.

MaxBarraclough|2 years ago

They said they found it difficult to configure, not that they found it difficult to use afterwards.

tlamponi|2 years ago

If your system cannot relay mail correctly already, as most office setups are easy to configure to be able to provide that without extra config, at least for Linux setups, then the set up means having something like the following in their gitconfig:

    cat .gitconfig
    # snip
    [sendemail]
     to = default@list.example.com
     annotate = yes
     suppresscc = self
     smtpencryption=tls
     smtpserver=imap.example.com
     smtpserverport=587
     smtpuser=foo.bar@example.com
(only the ones starting with "smtp" are relevant for mail, the other ones are just there for convenience)

And that has to be done once, iow., in essence it's as hard a setting up an email fat client like thunderbird.