Skip to content

Commit

Permalink
Update git send-email for Migadu host
Browse files Browse the repository at this point in the history
I tried to do the equivalent of the script directly in the git config but it wouldn't bite.

I also tried making the credential name less specific but again no dice.
  • Loading branch information
samhh committed Mar 30, 2021
1 parent 1d6b396 commit 2a8348d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
11 changes: 5 additions & 6 deletions home/.config/git/config
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,13 @@
name = Sam A. Horvath-Hunt
signingkey = 4667250BD56735A8

[credential]
helper = store
[credential "smtp://hello%40samhh.com@smtp.migadu.com%3a465"]
helper = !~/scripts/pass-git-credential.sh emails/migadu.com/mailbox/hello

[sendemail]
smtpserver = localhost
smtpserverport = 1025
smtpencryption = plain
smtpuser = samhh95
smtpserver = smtp.migadu.com
smtpuser = hello@samhh.com
smtpencryption = ssl

[init]
defaultBranch = master
Expand Down
6 changes: 6 additions & 0 deletions home/scripts/pass-git-credential.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bash

pass_path=${1}

echo "password=$(pass show $pass_path)"

0 comments on commit 2a8348d

Please sign in to comment.