From 2b7b3e48befd6d1766d21da712a84d362ecab190 Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Wed, 17 Jun 2020 18:17:51 +0200 Subject: git: allow using git-send-email with 'pass' for creds --- .config/git/config | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) (limited to '.config/git/config') diff --git a/.config/git/config b/.config/git/config index cd4bf9f..3ad074e 100644 --- a/.config/git/config +++ b/.config/git/config @@ -3,17 +3,22 @@ email = r@gnzler.io [sendemail] - smtpserver = mail.gandi.net - smtpuser = robert@gnzler.io - smtpencryption = tls - smtppass = !pass email/gnzler.io - ; smtpserver = /usr/bin/msmtp - ; smtpserveroption=-a - ; smtpserveroption=gnzler + from = Robert Günzler + smtpServer = mail.gandi.net + smtpServerPort = 465 + smtpEncryption = ssl + smtpUser = robert@gnzler.io + ; smtpServer = /usr/bin/msmtp + ; smtpServerOption=-a + ; smtpServerOption=gnzler annotate = true multiEdit = true confirm = always +[credential "smtp://mail.gandi.net:465"] + username = robert@gnzler.io + helper = !sh -c 'pass email/gnzler.io | xargs printf "password=%s\n"' + [core] excludesfile = ~/.git/ignore # Treat spaces before tabs and all kinds of trailing whitespace as an error -- cgit 1.4.1