blob: 5921436a05b4ef24d9d65d48d96fc8877c15e5d7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/bin/bash
# Add a --trustdb-name namespace to the gpg config options for mutt.
# Use like this in muttrc:
# source "mutt-gpg-config-namespaced /etc/Muttrc.gpg.dist foo"|
set -eu
sourcefile=$1
dbname=$2
grep -E -v "^\s*(#|$)" "$sourcefile" \
| grep 'command=' \
| sed "s#gpg #gpg --trustdb-name=$dbname #"
|