aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/dot_config/git/config
diff options
context:
space:
mode:
authorLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-05-13 13:43:24 +0100
committerLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-05-13 13:43:24 +0100
commit3b69f8e3c6c1494da1ab85c65476efc90fa13dfb (patch)
tree3216e919aac338d19f9fd94895c1fe717aa981b5 /dot_config/git/config
parent0806967e099b8ac6132a93271ad0c19b336775b6 (diff)
downloaddotfiles-3b69f8e3c6c1494da1ab85c65476efc90fa13dfb.tar.gz
dotfiles-3b69f8e3c6c1494da1ab85c65476efc90fa13dfb.tar.bz2
dotfiles-3b69f8e3c6c1494da1ab85c65476efc90fa13dfb.zip
feat(git): configure git send-email via ProtonMail Bridge
Add a [sendemail] block targeting the local Bridge SMTP listener (127.0.0.1:1025, STARTTLS) and a credential helper scoped to that URL that fetches the password from pass (proton/bridge-smtp). The helper command is public; the secret stays in the password store. The bridge SMTP username (sensitive but not secret) goes in the per-identity private overlay (~/doxfiles), not here. Also pull in the Perl SMTP modules git send-email needs at runtime.
Diffstat (limited to 'dot_config/git/config')
-rw-r--r--dot_config/git/config13
1 files changed, 13 insertions, 0 deletions
diff --git a/dot_config/git/config b/dot_config/git/config
index 87947d0..ed0fabd 100644
--- a/dot_config/git/config
+++ b/dot_config/git/config
@@ -133,3 +133,16 @@
path = config-personal
[includeIf "gitdir:~/dev/personal/"]
path = config-personal
+[sendemail]
+ smtpServer = 127.0.0.1
+ smtpServerPort = 1025
+ smtpEncryption = tls
+ smtpDomain = localhost
+ confirm = auto
+ suppresscc = self
+ chainReplyTo = false
+ thread = true
+ annotate = true
+ assume8bitEncoding = UTF-8
+[credential "smtp://127.0.0.1:1025"]
+ helper = "!f() { test \"$1\" = get && printf 'password=%s\\n' \"$(pass show proton/bridge-smtp)\"; }; f"